Implemented WebSocket support