journal.pl/src/socket.ts

9 lines
287 B
TypeScript
Raw Normal View History

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)
})