Improvements to pulling WebSocket packets off the socket