Name | Description |
blisten
(onMessage, timeout)
|
|
bstop
()
|
Stop listening and yield until the operation is complete.
|
hasSubscription
(channel)
|
|
listen
(callback, timeout)
|
Waits for messages and calls the callback with the channel and the message as arguments.
The timeout is passed over to the listener, which closes after the period of inactivity.
Use 0.seconds timeout to specify a very long time (365 days)
Errors will be sent to Callback Delegate on channel "Error".
|
psubscribe
(args)
|
Same as subscribe, but uses glob patterns, and does not return instantly if
the subscriptions are already registered.
throws Exception if the pattern does not yield a new subscription.
|
punsubscribe
(args)
|
Same as unsubscribe, but uses glob patterns, and does not return instantly if
the subscriptions are not registered.
throws Exception if the pattern does not yield a new unsubscription.
|
stop
()
|
Stop listening asynchroneously
|
subscribe
(args)
|
Completes the subscription for a listener to start receiving pubsub messages
on the corresponding channel(s). Returns instantly if already subscribed.
If a connection error is thrown here, it stops the listener.
|
unsubscribe
(args)
|
Unsubscribes from the channel(s) specified, returns immediately if none
is currently being listened.
If a connection error is thrown here, it stops the listener.
|