Class WampServer
Enable support for the official WAMP sub-protocol in your application WAMP allows for Pub/Sub and RPC
- Ratchet\Wamp\WampServer implements Ratchet\MessageComponentInterface, Ratchet\WebSocket\WsServerInterface
Link: The WAMP specification
Link: Souce for client side library
Link: Minified client side library
Located at Ratchet/Wamp/WampServer.php
public
|
#
__construct(
This class just makes it 1 step easier to use Topic objects in WAMP If you're
looking at the source code, look in the __construct of this |
public
|
#
onOpen(
When a new connection is opened it will be passed to this method |
public
|
#
onMessage(
Triggered when a client sends data through the socket |
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
|
$wampProtocol |
|