improved WebSocket performance