@jcbuisson/express-x 1.4.3 → 1.4.4
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/package.json +1 -1
- package/src/server.mjs +1 -10
package/package.json
CHANGED
package/src/server.mjs
CHANGED
|
@@ -283,12 +283,7 @@ export function expressX(prisma, options = {}) {
|
|
|
283
283
|
setTimeout(() => {
|
|
284
284
|
app.log('verbose', `Delete connection ${connection.id}`)
|
|
285
285
|
delete app.connections[connection.id]
|
|
286
|
-
},
|
|
287
|
-
})
|
|
288
|
-
|
|
289
|
-
socket.on('reconnect', () => {
|
|
290
|
-
console.log('Client reconnected:', socket.id)
|
|
291
|
-
// Add your custom logic to link the reconnected WebSocket with the previous session
|
|
286
|
+
}, 10 * 1000)
|
|
292
287
|
})
|
|
293
288
|
|
|
294
289
|
|
|
@@ -304,10 +299,6 @@ export function expressX(prisma, options = {}) {
|
|
|
304
299
|
io.emit('cnx-transfer-ack', to)
|
|
305
300
|
})
|
|
306
301
|
|
|
307
|
-
function wait(ms) {
|
|
308
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
309
|
-
}
|
|
310
|
-
|
|
311
302
|
/*
|
|
312
303
|
* Handle websocket client request
|
|
313
304
|
* Emit in return a 'client-response' message
|