arrival messaeg in system info working
This commit is contained in:
parent
b441cc3f3c
commit
9e262c7fc4
1 changed files with 3 additions and 2 deletions
|
|
@ -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 ?? "",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue