fix: socket.io client url

* fixes backend crash with IPv6 and some IPv4 setups
* instead of passing empty url, let socket.io set default url
  (defaults to window.location.host)
This commit is contained in:
ther0bster 2024-07-25 21:22:55 +02:00
parent e691839771
commit 02b104f56b

View File

@ -110,7 +110,7 @@
await WEBUI_NAME.set(backendConfig.name);
if ($config) {
const _socket = io(`${WEBUI_BASE_URL}`, {
const _socket = io({
path: '/ws/socket.io',
auth: { token: localStorage.token }
});