socket.io-mongo-emitter

The Socket.IO MongoDB emitter, allowing to communicate with a group of Socket.IO servers from another Node.js process

MIT License

Downloads
9.7K
Stars
6
Committers
1

Bot releases are hidden (Show)

socket.io-mongo-emitter - 0.2.0 Latest Release

Published by darrachequesne over 1 year ago

Features

TTL index

You can now use the MongoDB emitter with a collection that is cleaned up with a TTL index:

const io = new Emitter(mongoCollection, "/", {
  addCreatedAtField: true
});

Reference: https://socket.io/docs/v4/mongo-adapter/#usage-with-a-ttl-index

Added in 3b6d5a9.

Links

socket.io-mongo-emitter - 0.1.0

Published by darrachequesne over 3 years ago

Initial release!