Hi
I need help with this issue: Mongo Socket continuously closes connection, so, I’m assuming the keepAlive socket property isn’t working as it should.
error: connection 2 to host:27017 closed
I temporarily fixed this by reading anything from DB every 30 seconds, although it may not be the best solution for a Atlas Serverless solution given that every read costs.
setInterval(async () => await App.findById("anything"), 30000)
Thanks
Mongoose 8.2.0
Bun 1.0.28
Elysia 0.8.17