function createWebSocket(url) {
	    if (typeof WebSocket == "undefined") {
	        // eslint-disable-next-line @typescript-eslint/no-var-requires
	        const WebSocket = ws__default["default"];
	        return new WebSocket(url);
	    }
	    else {
	        return new WebSocket(url);
	    }
	}
Create a new websocket for a given URL
@param url The url.