From 3c09fce8991ea5e9aa0ad26836f09fb14782cc03 Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Tue, 26 Mar 2024 18:28:42 -0400 Subject: [PATCH] Fix ping packets PR-URL: https://github.com/metarhia/metacom/pull/499 --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index 1b1a703f..30a97ab0 100644 --- a/lib/server.js +++ b/lib/server.js @@ -236,7 +236,7 @@ class Server { message(client, data) { if (Buffer.compare(EMPTY_PACKET, data) === 0) { - return void client.send('{}'); + return void client.send({}); } const packet = metautil.jsonParse(data) || {}; const { id, type, method } = packet;