Skip to content

Create Events Simple Publisher

//trimblecloud-events/trimblecloud.events/PublisherFactory/createEventsSimplePublisher

createEventsSimplePublisher

[JVM]
open fun createEventsSimplePublisher(responseCallback: BiConsumer<BatchAck, PublisherException>): Publisher

Create a publisher that allows client to handles event batching explicitly.

Return

The created publisher for events.

Parameters

JVM

responseCallbackLambda expression which acts as a websocket listener that receives response and any exceptions from the Events server. BatchAck object contains the acknowledged batchId and type of acknowledgement. If the PublisherException object is not null, then there is an exception for the request that has been sent to the server.

Throws

PublisherExceptionif there is an exception during request.