Fixes bug in Node.js WebSocket support when receiving messages.