@jusbid/redis 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -907,7 +907,10 @@ const createSocketServer = ({
907
907
  const socketServer = new Server(httpServer, {
908
908
  cors,
909
909
  path,
910
+ pingTimeout: 25000,
911
+ pingInterval: 20000, // good to set explicitly too
910
912
  });
913
+ socketServer.adapter(createAdapter(getRedisClients()));
911
914
 
912
915
  // Token handshake middleware
913
916
  socketServer.use(async (socket, next) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jusbid/redis",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "index.js",
5
5
  "private": false,
6
6
  "dependencies": {