Using the WebSocket API