From e514b4ce662d00046afed54a9788dcd67942f69c Mon Sep 17 00:00:00 2001 From: Iain Date: Tue, 17 Nov 2026 11:58:42 +0000 Subject: [PATCH] fix(cluster-engine): publish a Buffer to Redis from the primary --- packages/socket.io-cluster-engine/lib/redis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/socket.io-cluster-engine/lib/redis.ts b/packages/socket.io-cluster-engine/lib/redis.ts index e0c9091691..c7329133c3 100644 --- a/packages/socket.io-cluster-engine/lib/redis.ts +++ b/packages/socket.io-cluster-engine/lib/redis.ts @@ -116,7 +116,7 @@ export function setupPrimaryWithRedis( message._primaryId = primaryId; debug("publish message to channel %s", channel); - pubClient.publish(channel, encode(message)); + pubClient.publish(channel, Buffer.from(encode(message))); }, ); }