Class SessionProvider
This component will allow access to session data from your website for each user connected Symfony HttpFoundation is required for this component to work Your website must also use Symfony HttpFoundation Sessions to read your sites session data If your are not using at least PHP 5.4 you must include a SessionHandlerInterface stub (is included in Symfony HttpFoundation, loaded w/ composer)
- Ratchet\Session\SessionProvider implements Ratchet\Http\HttpServerInterface
public
|
#
__construct(
|
public
|
|
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 |
protected
array
|
|
protected
string
|
protected
|
$_app |
|
|
protected
|
$_handler |
|
#
Selected handler storage assigned by the developer |
protected
|
$_null |
|
#
Null storage handler if no previous session was found |
protected
|
$_serializer |
|