Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
dbe463a5
"examples/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "ff1af7f2627e07b229265f8e6ad8e536bf5d2827"
Commit
dbe463a5
authored
Aug 07, 2024
by
Timothy J. Baek
Browse files
fix
parent
678dd780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/routes/+layout.svelte
src/routes/+layout.svelte
+4
-4
No files found.
src/routes/+layout.svelte
View file @
dbe463a5
...
@@ -114,7 +114,7 @@
...
@@ -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 @@
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment