mirror of https://gitlab.com/litecord/litecord.git
gateway.websocket: use non-whitespace separators on encode_json
decreases overall bytes needed to send a payload
This commit is contained in:
parent
bf8eca95b1
commit
bf661fa237
|
|
@ -34,7 +34,7 @@ WebsocketObjects = collections.namedtuple(
|
|||
|
||||
|
||||
def encode_json(payload) -> str:
|
||||
return json.dumps(payload)
|
||||
return json.dumps(payload, separators=(',', ':'))
|
||||
|
||||
|
||||
def decode_json(data: str):
|
||||
|
|
|
|||
Loading…
Reference in New Issue