| Name | Type | Description |
|---|---|---|
pubname |
String |
Publication name. |
args |
Array |
Subscription arguments. |
ddplink |
simpleDDP |
simpleDDP instance. |
Classes
Methods
-
Returns true if subscription is active otherwise false.
Returns:
Type Description Promise -
Returns true if subsciprtion is ready otherwise false.
Returns:
Type Description boolean -
Returns true if subscription is stopped otherwise false.
Returns:
Type Description boolean -
Returns a promise which resolves when corresponding
nosubmessage arrives. Rejects whennosubcomes with error.Returns:
Type Description Promise -
onNosub (f)ddpEventListener
-
Runs everytime when
nosubmessage corresponding to the subscription comes from the server.Name Type Description ffunction Function, event handler.
Returns:
Type Description ddpEventListener -
onReady (f)ddpEventListener
-
Runs everytime when
readymessage corresponding to the subscription comes from the server.Name Type Description ffunction Function, event handler.
Returns:
Type Description ddpEventListener -
Returns a promise which resolves when subscription is ready or rejects when
nosubmessage arrives.Returns:
Type Description Promise -
Completly removes subscription.
-
Restart the subscription. You can also change subscription arguments. Returns a promise which resolves when subscription is ready.
Name Type Description argsArray optional Subscription arguments.
Returns:
Type Description Promise -
Start the subscription. Runs on class creation. Returns a promise which resolves when subscription is ready.
Name Type Description argsArray Subscription arguments.
Returns:
Type Description Promise -
Stops subscription and return a promise which resolves when subscription is stopped.
Returns:
Type Description Promise