Sync Stream
Interface for Sync Pub-sub messaging primitive.
Message Stream is a Sync primitive for real-time pub-sub messaging. Stream Messages are not persisted, they exist only in transit, and will be dropped if (due to congestion or network anomalies) they cannot be delivered promptly.
You can publish Messages and listen for incoming Messages.
To obtain an instance of a SyncStream use SyncClient.streams.
Types
Properties
A date this SyncStream will expire, null
means will not expire.
Provides scope of Flows objects to get notified about events.
true
when this SyncStream is offline and doesn't receive updates from backend, false
otherwise.
true
when this SyncStream has been removed on the backend, false
otherwise.
An immutable system-assigned identifier of this SyncStream.
Current subscription state.
An optional unique name for this stream, assigned at creation time.
Functions
Close this SyncStream.
Publish a new message to this SyncStream.
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.
Remove this SyncStream.
Set time to live for this SyncStream.
Executes the given block function on SyncStream and then closes it down correctly whether an exception is thrown or not.