From: Christian Heller Date: Sun, 8 Nov 2020 01:55:20 +0000 (+0100) Subject: Only send PONG to connection_id that sent the PING. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/static/test.html?a=commitdiff_plain;h=131e3c6e9a1808cef19a9085f060fe845a7b123d;p=plomrogue2-experiments Only send PONG to connection_id that sent the PING. --- diff --git a/new2/plomrogue/commands.py b/new2/plomrogue/commands.py index bdf4824..a80731d 100644 --- a/new2/plomrogue/commands.py +++ b/new2/plomrogue/commands.py @@ -53,7 +53,7 @@ def cmd_QUERY(game, target_nick, msg, connection_id): cmd_QUERY.argtypes = 'string string' def cmd_PING(game, connection_id): - game.io.send('PONG') + game.io.send('PONG', connection_id) cmd_PING.argtypes = '' def cmd_TURN(game, n):