The GosWebSocketBundle provides events which can be used to hook into actions performed by the bundle.
gos_web_socket.server_launched
is dispatched when the websocket server is launched, listeners receive aGos\Bundle\WebSocketBundle\Event\ServerLaunchedEvent
objectgos_web_socket.client_connected
is dispatched when a client connects to the websocket server, listeners receive aGos\Bundle\WebSocketBundle\Event\ClientConnectedEvent
objectgos_web_socket.client_disconnected
is dispatched when a client disconnects from the websocket server, listeners receive aGos\Bundle\WebSocketBundle\Event\ClientDisconnectedEvent
objectgos_web_socket.client_error
is dispatched when a client connection has an error, listeners receive aGos\Bundle\WebSocketBundle\Event\ClientErrorEvent
objectgos_web_socket.client_rejected
is dispatched when a client connection is rejected by the websocket server, listeners receive aGos\Bundle\WebSocketBundle\Event\ClientRejectedEvent
objectgos_web_socket.connection_rejected
is dispatched when a connection is rejected by the websocket server, listeners receive aGos\Bundle\WebSocketBundle\Event\ConnectionRejectedEvent
objectgos_web_socket.push_fail
is dispatched when a server push fails, listeners receive aGos\Bundle\WebSocketBundle\Event\PushHandlerFailEvent
objectgos_web_socket.push_success
is dispatched when a server push succeeds, listeners receive aGos\Bundle\WebSocketBundle\Event\PushHandlerSuccessEvent
object
To create an event listener, please follow the Symfony documentation.