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
| responseCallback | Lambda 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
| PublisherException | if there is an exception during request. |