Make sure WebSocket doesn't crash with bad handshake message. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". WebSocket is open WebSocket is closed PASS successfullyParsed is true TEST COMPLETE