mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
revert: websocket
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
import { WEBUI_NAME, config, user, socket } from '$lib/stores';
|
||||
|
||||
import { generateInitialsImage, canvasPixelTest } from '$lib/utils';
|
||||
import { setupSocket } from '$lib/utils/websocket';
|
||||
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import OnBoarding from '$lib/components/OnBoarding.svelte';
|
||||
@@ -42,10 +41,6 @@
|
||||
if (sessionUser.token) {
|
||||
localStorage.token = sessionUser.token;
|
||||
}
|
||||
if (!$socket) {
|
||||
await setupSocket($config.features?.enable_websocket ?? true);
|
||||
}
|
||||
|
||||
$socket.emit('user-join', { auth: { token: sessionUser.token } });
|
||||
await user.set(sessionUser);
|
||||
await config.set(await getBackendConfig());
|
||||
|
||||
Reference in New Issue
Block a user