Fired when a message is published to the stream either locally or by a remote actor.
Parameters:
args
- info object provided with the event. It has the following properties:message
- Published messageisLocal
- equals true if the message was published by a local actor, false otherwiseFired when a stream is removed entirely, regardless of whether the remover was local or remote.
Parameters:
args
- info object provided with the event. It has the following properties:isLocal
- equals true if the stream was removed by a local actor, false otherwiseThe immutable system-assigned identifier of this stream. Never null.
A unique identifier optionally assigned to the stream on creation.
Conclude work with the stream instance and remove all event listeners attached to it. Any subsequent operation on this object will be rejected with error. Other local copies of this stream will continue operating and receiving events normally.
Publish a message to the stream. The system will attempt delivery to all online subscribers.
The body of the dispatched message. Maximum size in serialized JSON: 4KB. A rate limit applies to this operation, refer to the Sync API documentation for details.
A promise which resolves after the message is successfully published to the Sync service. Resolves irrespective of ultimate delivery to any subscribers.
Permanently delete this Stream.
A promise which resolves after the Stream is successfully deleted.
Update the time-to-live of the stream.
Specifies the TTL in seconds after which the stream is subject to automatic deletion. The value 0 means infinity.
A promise that resolves after the TTL update was successful.
A Sync primitive for pub-sub messaging. Stream Messages are not persisted, exist only in transit, and will be dropped if (due to congestion or network anomalies) they cannot be delivered promptly. Use the SyncClient.stream method to obtain a reference to a Sync Message Stream. Information about rate limits can be found here.