From 91c1d306741a8c11b4df9ed16ff41853c8acb5be Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 2 Feb 2025 17:55:13 -0500 Subject: [PATCH] fix: try something claude said to see if we can get session in the ws req --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8758647..0c06be2 100644 --- a/index.js +++ b/index.js @@ -32,8 +32,6 @@ app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.use(express.static("public")); app.use(fileUpload()); -app.use("/", wsRouter); - app.use( session({ store: new SQLiteStore({ client: db, expired: { clear: true } }), @@ -44,6 +42,8 @@ app.use( }), ); +app.use("/", wsRouter); + const vapidPublicKey = process.env.VAPID_PUBLIC_KEY const vapidPrivateKey = process.env.VAPID_PRIVATE_KEY