fix(signalr): fail to send message to client when using json protocol

This commit is contained in:
MingxuanGame
2025-07-27 15:49:52 +00:00
parent ed498a292a
commit 4b02225c83

View File

@@ -217,8 +217,7 @@ class JSONProtocol:
payload["result"] = packet.result
elif isinstance(packet, PingPacket):
pass
return json.dumps(payload).encode("utf-8")
return json.dumps(payload).encode("utf-8") + SEP
PROTOCOLS: dict[str, Protocol] = {