arrival messaeg in system info working

This commit is contained in:
NigeParis 2025-12-04 11:09:47 +01:00
parent 8959331b37
commit b2862c303a

View file

@ -35,8 +35,8 @@ document.addEventListener('ft:pageChange', () => {
}) })
function getSocket(): Socket { function getSocket(): Socket {
// let addressHost = `wss://${machineHostName}:8888`; let addressHost = `wss://${machineHostName}:8888`;
let addressHost = `wss://localhost:8888`; // let addressHost = `wss://localhost:8888`;
if (__socket === undefined) if (__socket === undefined)
__socket = io(addressHost, { __socket = io(addressHost, {
@ -137,6 +137,7 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
// Ensure we have a user AND socket is connected // Ensure we have a user AND socket is connected
if (!user || !socket.connected) return; if (!user || !socket.connected) return;
const message = { const message = {
destination: 'system-info',
type: "chat", type: "chat",
user, user,
token: document.cookie ?? "", token: document.cookie ?? "",