Skip to content

Commit

Permalink
Merge pull request #325 from TwoAbove/develop
Browse files Browse the repository at this point in the history
Added socketio fix
  • Loading branch information
TwoAbove authored Oct 20, 2023
2 parents a5d24a1 + d50de23 commit 3606618
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
22 changes: 19 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"patreon": "^0.4.1",
"react-use-search-params-state": "^1.0.1",
"serve-handler": "^6.1.5",
"socket.io": "^4.7.1",
"socket.io": "4.7.2",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand Down Expand Up @@ -101,7 +101,7 @@
"segfault-handler": "^1.3.0",
"sharp": "^0.32.1",
"simple-eta": "^3.0.2",
"socket.io-client": "^4.7.1",
"socket.io-client": "4.7.2",
"source-map-explorer": "^2.5.3",
"tesseract.js": "^5",
"tslib": "^2.6.0",
Expand Down Expand Up @@ -151,6 +151,7 @@
]
},
"optionalDependencies": {
"bufferutil": "^4.0.7"
"bufferutil": "^4.0.8",
"utf-8-validate": "^5.0.10"
}
}
1 change: 1 addition & 0 deletions server/io/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { rooms } = require("./rooms");

const corsDomains = [
"dev.noitool.com",
"www.noitool.com",
"noitool.com",
"localhost:3000",
"localhost:3001",
Expand Down
3 changes: 3 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ app.get("/m/*", async (req, res) => {

const server = require("http").createServer(app);
const io = require("./io")(server, app);
io.engine.on("connection_error", err => {
console.log(err);
});

// This is a hack for cleaner routing from the client's React Router.
// So that 404s still work, but the client can still route only to existing pages.
Expand Down

0 comments on commit 3606618

Please sign in to comment.