A subscription on a topic.
Construct a subscription on a specific topic.
Set a callback to be triggered when a message is received.
Set a callback to be triggered when a message is received and a JSON decoder to be used to decode the message body.
Set the id of the subscription to differentiate between multiple subscriptions to the same topic (default is to use the topic name).
Set the message acknowledgment mode to "auto" (the default).
When the ack mode is "auto", then the client does not need to send the server acknowledgements for the messages it receives. The server will assume the client has received the message as soon as it sends it to the client. This acknowledgment mode can cause messages being transmitted to the client to get dropped.
Set the message acknowledgment mode to "client".
When the ack mode is "client", then the client must send the server acknowledgements for the messages it processes. If the connection fails before a client sends an acknowledgement for the message the server will assume the message has not been processed and may redeliver the message to another client.
Set the message acknowledgment mode to "client-individual".
When the ack mode is "client-individual", the acknowledgment operates just like
the "client" acknowledgment mode except that the ack or nack sent by the
client are not cumulative. This means that an ack or nack for a
subsequent message does not cause a previous message to get acknowledged.
Batch multiple subscriptions together.
Return a subscription that does nothing.
Describes a subscription.