restructured the ws client, i quickly realised that it was alot for us to take on, to handle all the events, the closing, the codes etc etc, so what i've gone with instead is:
class extends native Websocket, called with new instead of .create (idea from @crookse)
Removed close method, and logic to wait until its open
The client is now purely just a nice wrapper around sending and handling messages
restructured the ws client, i quickly realised that it was alot for us to take on, to handle all the events, the closing, the codes etc etc, so what i've gone with instead is:
The client is now purely just a nice wrapper around sending and handling messages
And added path support