🔧 Tooling for resumable socket.io sessions

This commit is contained in:
2023-07-27 11:09:26 -07:00
parent 7b855f8cf1
commit 4003f666cf
7 changed files with 1848 additions and 2197 deletions

View File

@@ -1,5 +1,4 @@
const mongoose = require("mongoose");
const paginate = require("mongoose-paginate-v2");
const JobResultScehma = mongoose.Schema({
id: Number,

9
models/session.model.ts Normal file
View File

@@ -0,0 +1,9 @@
const mongoose = require("mongoose");
const SessionScehma = mongoose.Schema({
sessionId: String,
socketId: String,
});
const Session = mongoose.model("Session", SessionScehma);
export default Session;