Добавлена работа с сокетами

This commit is contained in:
grinikita
2022-11-27 18:41:04 +03:00
parent cb423fca64
commit 36d2d2ac73
5 changed files with 89 additions and 13 deletions
+8
View File
@@ -0,0 +1,8 @@
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)
})