This commit is contained in:
2024-01-23 17:07:19 -05:00
parent 4aea6a8e4c
commit 173277cc8b
21 changed files with 5312 additions and 70 deletions

View File

@ -147,14 +147,15 @@ app.api = (function (app) {
//socket.io
app.socket = (function (app) {
//need to replace with domain name of server when published
var socket = io("localhost", {
transports: ["websocket"],
'Access-Control-Allow-Origin': 'http://localhost:3000',
});
var socket = io();
socket.on("disconnect", () => {
console.log("disconnected");
});
socket.on('connect', ()=>{
console.info('WS connected');
})
socket.io.on("reconnect", () => {
console.log("reconnected");
});