handlers: Prepared some WebSocket code