The channel name.
A Presence object.
A PushChannel object.
Retrieves a PaginatedResult object, containing an array of historical InboundMessage objects for the channel. If the channel is configured to persist messages, then messages can be retrieved from history for up to 72 hours in the past. If not, messages can only be retrieved from history for up to two minutes in the past.
Optional
params: RestHistoryParams
A set of parameters which are used to specify which messages should be retrieved.
A promise which, upon success, will be fulfilled with a PaginatedResult object containing an array of InboundMessage objects. Upon failure, the promise will be rejected with an ErrorInfo object which explains the error.
Publishes an array of messages to the channel.
An array of Message objects.
Optional
options: PublishOptions
Optional parameters, such as quickAck
sent as part of the query string.
A promise which resolves upon success of the operation and rejects with an ErrorInfo object upon its failure.
Publishes a message to the channel.
A Message object.
Optional
options: PublishOptions
Optional parameters, such as quickAck
sent as part of the query string.
A promise which resolves upon success of the operation and rejects with an ErrorInfo object upon its failure.
Publishes a single message to the channel with the given event name and payload.
The name of the message.
The payload of the message.
Optional
options: PublishOptions
Optional parameters, such as quickAck
sent as part of the query string.
A promise which resolves upon success of the operation and rejects with an ErrorInfo object upon its failure.
Retrieves a ChannelDetails object for the channel, which includes status and occupancy metrics.
A promise which, upon success, will be fulfilled a ChannelDetails object. Upon failure, the promise will be rejected with an ErrorInfo object which explains the error.
Generated using TypeDoc
Enables messages to be published and historic messages to be retrieved for a channel.