Skip to content

Create Events Publisher

//trimblecloud-events/trimblecloud.events/PublisherFactory/createEventsPublisher

createEventsPublisher

[JVM]
open fun createEventsPublisher(responseCallback: BiConsumer<PublisherRequest, PublisherException>): Publisher

Create a publisher that handles batch processing internally.

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. PublisherRequest object contains the request details and PublisherException object contains any exceptions that occurred during the request.

Throws

PublisherExceptionif there is an exception during request.