journal.pl/src/socket.ts

9 lines
291 B
TypeScript
Raw Normal View History

2022-11-27 21:41:38 +03:00
import { getConfigValue } from "@ijl/cli";
import { io } from "socket.io-client";
export const socket = io(getConfigValue('hub-video-start.socket.url'), { path: getConfigValue('hub-video-start.socket.path')});
socket.on("connect", () => {
console.log('Socket connected', socket.id)
})