Handles the internet web socket server, and listens for messages. For more
information, refer to the developer documenation.
Queue a new connection to WS server
The connection that is being opened.
onMessage(\Ratchet\ConnectionInterface $from,mixed $msg)
When a message is received from the web browser to the web socket server
The connection the message is from.
The contents of the message.
The connection to close.
onError(\Ratchet\ConnectionInterface $conn,\apex\app\msg\Exception $e)
The connection that the error is regarding.
The exception that occurred.
The line to add to the chat
authenticate(string $auth_string,\Ratchet\ConnectionInterface $from)
Authenticate the user
The auth string that identifies the user.
The connection auth request is coming from.