Async WebSocket server adapter for Amp based on different implementations.
Websocket server is set of interfaces that provide webaocket server for amphp
This package can be installed as a Composer dependency.
composer require ekstazi/websocket-server-adapter
Return server class instance
Add handler to specified route.
Run main event loop and subscribes to SIGINT/SIGTERM signal.
Stop the server and finish event loop
Called after handshake negotiated but before websocket upgrade. You can validate your connections here
This method called after upgrade is finished.
List of subprotocols supported. If client doesn't support one of it then connection not started
Get id of connection
Get args passed to connection
Get remote address of client
For more details see