publish Message
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
sid Or Unique Name
SID or unique name of existing SyncStreamJava.
json Data
Contains the payload of the dispatched message. Maximum size in serialized JSON: 4KB.
callback
Async result listener. See SuccessListener.