Universal WebSocket Client Browser Test
Adapted from
the WebSocket.org Echo Test