mirror of
https://github.com/open-webui/open-webui
synced 2025-02-18 02:57:02 +00:00
fix
This commit is contained in:
parent
678dd780ee
commit
dbe463a53d
@ -114,7 +114,7 @@
|
|||||||
reconnection: true,
|
reconnection: true,
|
||||||
reconnectionDelay: 1000,
|
reconnectionDelay: 1000,
|
||||||
reconnectionDelayMax: 5000,
|
reconnectionDelayMax: 5000,
|
||||||
randomizationFactor: 0.5
|
randomizationFactor: 0.5,
|
||||||
path: '/ws/socket.io',
|
path: '/ws/socket.io',
|
||||||
auth: { token: localStorage.token }
|
auth: { token: localStorage.token }
|
||||||
});
|
});
|
||||||
@ -123,15 +123,15 @@
|
|||||||
console.log('connected');
|
console.log('connected');
|
||||||
});
|
});
|
||||||
|
|
||||||
_socket.on("reconnect_attempt", (attempt) => {
|
_socket.on('reconnect_attempt', (attempt) => {
|
||||||
console.log('reconnect_attempt', attempt);
|
console.log('reconnect_attempt', attempt);
|
||||||
});
|
});
|
||||||
|
|
||||||
_socket.on("reconnect_failed", () => {
|
_socket.on('reconnect_failed', () => {
|
||||||
console.log('reconnect_failed');
|
console.log('reconnect_failed');
|
||||||
});
|
});
|
||||||
|
|
||||||
_socket.on("disconnect", (reason, details) => {
|
_socket.on('disconnect', (reason, details) => {
|
||||||
console.log(`Socket ${socket.id} disconnected due to ${reason}`);
|
console.log(`Socket ${socket.id} disconnected due to ${reason}`);
|
||||||
if (details) {
|
if (details) {
|
||||||
console.log('Additional details:', details);
|
console.log('Additional details:', details);
|
||||||
|
Loading…
Reference in New Issue
Block a user