Class TopicManager
WebSocket Server Interface
- Ratchet\Wamp\TopicManager implements Ratchet\WebSocket\WsServerInterface, Ratchet\Wamp\WampServerInterface
public
|
|
public
|
#
onOpen(
When a new connection is opened it will be passed to this method |
public
|
#
onCall(
An RPC call has been received |
public
|
#
onSubscribe(
A request to subscribe to a topic has been made |
public
|
|
public
|
#
onPublish(
A client is attempting to publish content to a subscribed connections on a URI |
public
|
#
onClose(
This is called before or after a socket is closed (depends on how it's closed). SendMessage to $conn will not result in an error if it has already been closed. |
public
|
#
onError(
If there is an error with one of the sockets, or somewhere in the application where an Exception is thrown, the Exception is sent back down the stack, handled by the Server and bubbled back up the application through this method |
public
array
|
#
getSubProtocols( )
If any component in a stack supports a WebSocket sub-protocol return each supported in an array |
protected
|
|
protected
|
onUnSubscribe()
|
protected
|
$app | |
|
protected
array
|
$topicLookup | array() |