Skip to content

0.2.0

Latest
Compare
Choose a tag to compare
@darrachequesne darrachequesne released this 27 Jun 15:09
b91b442

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