fix(signalr): fail to send message to client when using json protocol
This commit is contained in:
@@ -217,8 +217,7 @@ class JSONProtocol:
|
|||||||
payload["result"] = packet.result
|
payload["result"] = packet.result
|
||||||
elif isinstance(packet, PingPacket):
|
elif isinstance(packet, PingPacket):
|
||||||
pass
|
pass
|
||||||
|
return json.dumps(payload).encode("utf-8") + SEP
|
||||||
return json.dumps(payload).encode("utf-8")
|
|
||||||
|
|
||||||
|
|
||||||
PROTOCOLS: dict[str, Protocol] = {
|
PROTOCOLS: dict[str, Protocol] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user