Skip to content

Releases: socketio/socket.io-mongo-adapter

0.4.0

Choose a tag to compare

@darrachequesne darrachequesne released this 10 Aug 07:31
eff10ab

Features

  • allow to specify additional change stream options (#26) (eae849b)

Links

0.3.2

Choose a tag to compare

@darrachequesne darrachequesne released this 23 Jan 15:57
b80c9bb

Bug Fixes

  • add support for AWS DocumentDB (#21) (0c80f7f)
  • ensure CSR works with a capped collection (d3fa038)
  • exclude offline nodes when calling serverCount() (e2fb8c2)

Links

0.3.1

Choose a tag to compare

@darrachequesne darrachequesne released this 10 Jan 15:27
57a6dfb

Bug Fixes

  • add support for mongodb@6 (1a04885)
  • properly handle promise rejections (075216f)

Links

0.3.0

Choose a tag to compare

@darrachequesne darrachequesne released this 23 Feb 07:41
b39f5d5

Features

Connection state recovery

This adapter is now compatible with the connection state recovery feature, which was added in socket.io@4.6.0.

Reference: https://socket.io/docs/v4/connection-state-recovery

Added in 02e4d57.

Resume token

Upon reconnection to the MongoDB server, the client will now try to resume the stream at the last offset it has processed.

If the MongoDB client is disconnected for too long and its token is no longer valid, then the Socket.IO clients connected to this server may miss some packets (which was the previous behavior).

Added in e77063b.

Links

0.2.1

Choose a tag to compare

@darrachequesne darrachequesne released this 03 May 13:04
fd71cfe

Bug Fixes

  • properly handle invalidate events (938674d)

Links

0.2.0

Choose a tag to compare

@darrachequesne darrachequesne released this 27 Apr 00:25
d42bf39

Features

  • add an option to use a TTL index (#4) (7fdbb25)

The addCreatedAtField option allows to use a TTL index instead of a capped collection, which is slightly less efficient but more predictable.

  • broadcast and expect multiple acks (e87a0ce)

This feature was added in socket.io@4.5.0:

io.timeout(1000).emit("some-event", (err, responses) => {
  // ...
});

Thanks to this change, it will now work with multiple Socket.IO servers.

  • use a single stream for all namespaces (9b5f4c8)

The adapter will now create one single MongoDB stream for all namespaces, instead of one per namespace, which could lead to performance issues.

Links

0.1.0

Choose a tag to compare

@darrachequesne darrachequesne released this 01 Jun 07:40
87535e4

Initial release!