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
- Diff: 0.1.0...0.2.0