all other staff

This commit is contained in:
2023-04-16 12:18:29 +03:00
parent 0663ed5370
commit 109d51115b
18 changed files with 681 additions and 827 deletions
+13 -4
View File
@@ -1,8 +1,17 @@
import { getConfigValue } from "@ijl/cli";
import { io } from "socket.io-client";
export const socket = io(getConfigValue('journal.socket.url'), { path: getConfigValue('journal.socket.path')});
socket.on("connect", () => {
console.log('Socket connected', socket.id)
})
let socket = null;
export const getSocket = () => socket;
export const connect = () => {
socket = io(getConfigValue('journal.socket.url') + '/lessons', { path: getConfigValue('journal.socket.path')});
socket.on("connect", () => {
console.log('Socket connected', socket.id)
})
}