emilhe / dash-extensions

The dash-extensions package is a collection of utility functions, syntax extensions, and Dash components that aim to improve the Dash development experience
https://www.dash-extensions.com/
MIT License
409 stars 57 forks source link

Hope to configure WebSocket URL based on server URL #298

Open n-arakawa opened 7 months ago

n-arakawa commented 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:

src/lib/components/WebSocket.react.js

        url = url? url : "ws://" + location.host + location.pathname + "ws";
        this.client = new WebSocket(url, protocols);