fix: No message reencoding

parent cfada799
...@@ -103,7 +103,7 @@ class LobbyManager(ClientManager): ...@@ -103,7 +103,7 @@ class LobbyManager(ClientManager):
data["extra"] = extras data["extra"] = extras
print(f"MSGOUT|{sid} ({to.name}), {data}") print(f"MSGOUT|{sid} ({to.name}), {data}")
await self.sio.emit('messageChannel', json.dumps(data, ensure_ascii=False).encode("utf8"), room=sid) await self.sio.emit('messageChannel', json.dumps(data), room=sid)
async def handle_message(self, sid, data): async def handle_message(self, sid, data):
message = None message = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment