Skip to content

Commit

Permalink
Fix ping packets
Browse files Browse the repository at this point in the history
PR-URL: #499
  • Loading branch information
tshemsedinov authored Mar 26, 2024
1 parent 9a30e47 commit 3c09fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c09fce

Please sign in to comment.