* 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)
@@ -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 }
});