Optimize Socket.io connections for fewer open requests at any one time

This commit is contained in:
Neshura 2024-01-06 04:31:40 +01:00
parent 2d74a1eb89
commit 4ce3e29f57
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
5 changed files with 52 additions and 24 deletions

View 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/'));

View file

@ -0,0 +1,4 @@
import {type Writable, writable} from 'svelte/store';
import type {Heartbeat} from "$lib/types/uptime-kuma-types";
export let uptimeStore: Writable<Map<number, Heartbeat>> = writable(new Map());