mirror of
https://github.com/Textualize/textual-web.git
synced 2025-10-17 02:36:40 +03:00
Using binary encoding instead of msgpack
This commit is contained in:
@@ -92,16 +92,16 @@ class _ClientConnector(SessionConnector):
|
||||
"You may be running a version of Textual unsupported by this version of Textual Web."
|
||||
)
|
||||
|
||||
async def on_packed(self, payload: bytes) -> None:
|
||||
"""Handle packed data from session.
|
||||
async def on_binary_encoded_message(self, payload: bytes) -> None:
|
||||
"""Handle binary encoded data from the process.
|
||||
|
||||
Packed data is sent directly through to Ganglion.
|
||||
This data is forwarded directly to Ganglion.
|
||||
|
||||
Args:
|
||||
payload: Msgpack data to handle.
|
||||
payload: Binary encoded data to forward to Ganglion.
|
||||
"""
|
||||
await self.client.send(
|
||||
packets.PackedMessage(route_key=self.route_key, data=payload)
|
||||
packets.BinaryEncodedMessage(route_key=self.route_key, data=payload)
|
||||
)
|
||||
|
||||
async def on_close(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user