Open n-arakawa opened 7 months ago
URL property of Websocket is used in browser. I hope there is a way to set the URL based on server-url.
More specifically, I hope that at least the following are taken into account:
location.host
location.hostname
location.protocol
wss
ws
src/lib/components/WebSocket.react.js
url = url? url : "ws://" + location.host + location.pathname + "ws"; this.client = new WebSocket(url, protocols);
URL property of Websocket is used in browser. I hope there is a way to set the URL based on server-url.
More specifically, I hope that at least the following are taken into account:
location.host
location.hostname
to have a websocket server in other portlocation.protocol
to distinguish betweenwss
andws
src/lib/components/WebSocket.react.js