Метод |
Описание |
|
__construct ( ConnectionOptions $options = null ) |
Constructor. |
|
close ( ) : void |
Close will close the connection to the server. |
|
connect ( float $timeout = null ) : void |
Connect to server. |
|
getSubscriptions ( ) : array |
Return subscriptions list. |
|
isConnected ( ) : boolean |
Checks if the client is connected to a server. |
|
ping ( ) : void |
Sends PING message. |
|
pingsCount ( ) : integer |
Return the number of pings. |
|
publish ( string $subject, string $payload = null ) : void |
Publish publishes the data argument to the given subject. |
|
pubsCount ( ) : integer |
Return the number of messages published. |
|
queueSubscribe ( string $subject, string $queue, Closure $callback ) : string |
Subscribes to an specific event given a subject and a queue. |
|
reconnect ( ) : void |
Reconnects to the server. |
|
reconnectsCount ( ) : integer |
Return the number of reconnects to the server. |
|
request ( string $subject, string $payload, mixed $callback, integer $wait = 1 ) : void |
Request does a request and executes a callback with the response. |
|
setChunkSize ( integer $chunkSize ) : void |
|
|
setStreamTimeout ( float $seconds ) : boolean |
Set Stream Timeout. |
|
streamSocket ( ) : resource |
|
|
subscribe ( string $subject, Closure $callback ) : string |
Subscribes to an specific event given a subject. |
|
subscriptionsCount ( ) : integer |
Return the number of subscriptions available. |
|
unsubscribe ( string $sid ) : void |
Unsubscribe from a event given a subject. |
|
wait ( integer $quantity ) : resource |
Waits for messages. |
|