Improved WebSocket usage.