WebSocket-Node
WebSocket-Node copied to clipboard
Process pending frames when handling socket end
When the socket emits end event we might still have to process the
frames from the bufferList. One of the frames could be CONNECTION_CLOSE
and we don't want to miss that and think that the server has terminated
connection incorrectly.