@socket.io/redis-streams-adapter 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -140,8 +140,6 @@ io.listen(3000);
140
140
  | `readCount` | The number of elements to fetch per XREAD call. | `100` |
141
141
  | `blockTimeInMs` | The number of ms before the XREAD call times out. | `5_000` |
142
142
  | `sessionKeyPrefix` | The prefix of the key used to store the Socket.IO session, when the connection state recovery feature is enabled. | `sio:session:` |
143
- | `heartbeatInterval` | The number of ms between two heartbeats. | `5_000` |
144
- | `heartbeatTimeout` | The number of ms without heartbeat before we consider a node down. | `10_000` |
145
143
  | `onlyPlaintext` | Whether the transmitted data contains only JSON-serializable objects without binary data (Buffer, ArrayBuffer, etc.). | `false` |
146
144
 
147
145
  ## How it works
package/dist/util.js CHANGED
@@ -42,7 +42,7 @@ async function duplicateClient(redisClient) {
42
42
  newClient.on("error", (err) => {
43
43
  // ignore errors
44
44
  });
45
- if (isRedisV4Client(redisClient)) {
45
+ if (isRedisV4Client(redisClient) || redisClient.options.lazyConnect) {
46
46
  await newClient.connect();
47
47
  }
48
48
  return newClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socket.io/redis-streams-adapter",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "The Socket.IO adapter based on Redis Streams, allowing to broadcast events between several Socket.IO servers",
5
5
  "license": "MIT",
6
6
  "repository": {