From 76d486209c126234a71bebcc1f95816656652d03 Mon Sep 17 00:00:00 2001 From: starci183 Date: Wed, 15 Jan 2025 16:15:09 +0700 Subject: [PATCH] 123 --- lib/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/index.ts b/lib/index.ts index 3452ba4..5f5f8c1 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -297,6 +297,15 @@ export class ClusterAdapter extends Adapter { message.nsp ); + // check if sockets are present in the message + if (message?.data?.sockets) { + message.data.sockets = message.data.sockets.map((socket: any) => { + return { + ...socket, + data : JSON.parse(JSON.stringify(socket.data)) + }}) + } + process.send(message, null, { swallowErrors: true }, ignoreError); }