Writing a wrapper WebSocket client class in JS

I released this custom WebSocketChatServer gem earlier this month and thought that it may be a good idea to wrap the server’s client in a JS class just to make it easier to communicate with the server.

Here is the JS client:

And the example of usage: