Loading packages/client-next/src/lib/network.ts +1 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ class Network extends EventEmitter<INetworkEvents> { import.meta.env.VITE_API_HOST, { autoConnect: false, withCredentials: true, } ); private online_count = 0; Loading packages/server/src/index.ts +6 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,10 @@ const session = expressSession({ client: redisClient, prefix: "canvas_session:", }), cookie: { sameSite: "none", httpOnly: false, }, }); const app = express(); const server = http.createServer(app); Loading @@ -55,7 +59,8 @@ const io = new Server< } >(server, { cors: { origin: "*", origin: "http://10.1.10.248:5173", credentials: true, }, }); Loading Loading
packages/client-next/src/lib/network.ts +1 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ class Network extends EventEmitter<INetworkEvents> { import.meta.env.VITE_API_HOST, { autoConnect: false, withCredentials: true, } ); private online_count = 0; Loading
packages/server/src/index.ts +6 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,10 @@ const session = expressSession({ client: redisClient, prefix: "canvas_session:", }), cookie: { sameSite: "none", httpOnly: false, }, }); const app = express(); const server = http.createServer(app); Loading @@ -55,7 +59,8 @@ const io = new Server< } >(server, { cors: { origin: "*", origin: "http://10.1.10.248:5173", credentials: true, }, }); Loading