publish Message
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and publish it as a new message to this SyncStream.
Type T must be annotated with @Serializable.
Parameters
Contains the payload of the dispatched message. Maximum size in serialized JSON: 4KB.
Throws
If the given value cannot be serialized to JSON object.
When error occurred while updating the document.
Serializes the given value into an equivalent JsonObject using a serializer retrieved from reified type parameter and publish it as a new message to this SyncStream without opening it.
Type T must be annotated with @Serializable.
Parameters
SID or unique name of existing SyncStream.
Contains the payload of the dispatched message. Maximum size in serialized JSON: 4KB.
Throws
If the given value cannot be serialized to JSON object.
When error occurred while updating the document.