When you don't pass auth to socket.io, it throws an exception that would normally crash the process, TypeError: Cannot read properties of undefined (reading 'split').
The README.md file for DB doesn't work, here's a fixed one:
const db = require(`replace-replit`).db
const express = require(`express`)
;(async()=>{
const app = express();
app.use(await db.express({
file: "./database.json",
fileType: "json"
}));
app.listen(7007, () => {
console.log("DB is running on port 7007");
});
})()
DB can't handle numbers/objects/arrays (for numbers it assumes it's a status code smh)
In README.md, it should be http://localhost:8000 not localhost:8000
When you don't pass auth to socket.io, it throws an exception that would normally crash the process,TypeError: Cannot read properties of undefined (reading 'split')
.The README.md file for DB doesn't work, here's a fixed one:
DB can't handle numbers/objects/arrays (for numbers it assumes it's a status code smh)
In README.md, it should be
http://localhost:8000
notlocalhost:8000