Implements WebSocket.