@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.
- package/index.js +3 -0
- 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) => {
|