readding socket.io mongodb adapter #9955
Open
+107
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the now official mongodb adapter for socket.io, and some basic code for handling clustering with just mongodb.
Redis is still probably preferred, but sometimes running it might require additional costs (@Antosik you probably made your setup work already, but if you're still interested in running without Redis it should be possible now), and it seems people are interested in possibility of running without it.
Additionally, due to this and #9916 I added current version MongoDB Replica Set tests, but I later realized that there are no tests for clustering (so I was just testing it manually). I can remove them or let them stay for the transactions and also just as a way of ensuring things work with rs setups and on current mongo versions.
Their weird name is due to not wanting to modify existing tests that check for the database matrix starting with
mongo
- somongo-rs
was out.