Add class for WebSocket.