Optimize Socket.io connections for fewer open requests at any one time
This commit is contained in:
parent
2e6b174771
commit
5fff8cec4d
5 changed files with 52 additions and 24 deletions
src/lib/stores
4
src/lib/stores/socketStore.ts
Normal file
4
src/lib/stores/socketStore.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { writable } from 'svelte/store';
|
||||
import {io} from "socket.io-client";
|
||||
|
||||
export let socketStore = writable(io('https://status.neshweb.net/'));
|
Loading…
Add table
Add a link
Reference in a new issue