socket.io-mongo-adapter
socket.io-mongo-adapter copied to clipboard
The Socket.IO MongoDB adapter, allowing to broadcast events between several Socket.IO servers
Connection state recovery not working ```shell 2024-01-09T09:58:05.987Z socket.io-mongo-adapter restoring session: Aqp6Uis0930quMDiAAAF 2024-01-09T09:58:05.991306129Z 2024-01-09T09:58:05.991Z socket.io:namespace error while restoring session: session or offset not found ``` mongo 5.0 mongodb: 6.3.0 socket.io: 4.6.1...
Hey there! I noticed in the code base a bit of an anti-pattern: unresolved or unhandled promises. Unhandled promises, also known as "fire-and-forget" programming patterns, can be problematic for a...
The [query](https://github.com/socketio/socket.io-mongo-adapter/blob/main/lib/index.ts#L831) used for connection recovery (`restoreSession()`) uses a query which is not efficiently indexable. Specifically, say one has an index on `data.opts.rooms`, the where clause cannot be looked up...
Hi! We are very grateful that we were able to migrate from the redis adapter to this socket.io adapter to get rid of one dependency since Mongo is our DB...
Hello. thank for this great adapter. It helped me so much because my redis adapter crashed regulary so I could not use the redis adapter. The adapter is working great...