Represents a subscription made with an implementation of ct-services/messaging/MessageService
.
Methods
dispose()
Permanently stops the subscription from receiving new updates to the subject. Should be called when there is no further need for this subscription.
Throws:
-
if the subscription has already been disposed of.
- Type
-
module:ct-core
/Error
get Subject()
Returns the subject that this subscription is subscribed to.
is Disposed()
Checks whether the subscription has been disposed.
Returns:
true if the subscription is disposed, otherwise false
is Paused()
Returns whether the subscription is currently paused or not.
Throws:
-
if the subscription has been disposed of.
- Type
-
module:ct-core
/Error
pause()
Temporarily disables the subscription from receiving new updates to the subject.
Throws:
-
if the subscription has been disposed of.
- Type
-
module:ct-core
/Error
resume()
Re-enables the subscription, allowing it to receive any new updates to the subject.
Throws:
-
if the subscription has been disposed of.
- Type
-
module:ct-core
/Error