all other staff
This commit is contained in:
+13
-4
@@ -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)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user