publishMessage

abstract fun publishMessage(sidOrUniqueName: String, jsonData: String, callback: SuccessListener<SyncStreamJava.Message>): CancellationToken

Publish a new message to SyncStreamJava without opening it.

Return

CancellationToken which allows to cancel network request.

Parameters

sidOrUniqueName

SID or unique name of existing SyncStreamJava.

jsonData

Contains the payload of the dispatched message. Maximum size in serialized JSON: 4KB.

callback

Async result listener. See SuccessListener.