Méthode |
Description |
|
__destruct ( ) |
Automatically stops the consumer when the garbage collector kicks in. |
|
current ( ) : array |
Returns the last message payload retrieved from the server and generated
by one of the active subscriptions. |
|
key ( ) |
|
|
next ( ) |
|
|
ping ( string $payload = null ) |
PING the server with an optional payload that will be echoed as a
PONG message in the pub/sub loop. |
|
psubscribe ( $pattern ) |
Subscribes to the specified channels using a pattern. |
|
punsubscribe ( ) |
Unsubscribes from the specified channels using a pattern. |
|
rewind ( ) |
|
|
stop ( boolean $drop = false ) : boolean |
Closes the context by unsubscribing from all the subscribed channels. The
context can be forcefully closed by dropping the underlying connection. |
|
subscribe ( $channel ) |
Subscribes to the specified channels. |
|
unsubscribe ( ) |
Unsubscribes from the specified channels. |
|
valid ( ) : boolean |
Checks if the the consumer is still in a valid state to continue. |
|