mirror of
https://github.com/Textualize/textual-web.git
synced 2025-10-17 02:36:40 +03:00
Sending packed message
This commit is contained in:
@@ -89,7 +89,9 @@ class _ClientConnector(SessionConnector):
|
|||||||
Args:
|
Args:
|
||||||
payload: Msgpack data to handle.
|
payload: Msgpack data to handle.
|
||||||
"""
|
"""
|
||||||
await self.client.send(packets.Packed(payload))
|
await self.client.send(
|
||||||
|
packets.PackedMessage(route_key=self.route_key, data=payload)
|
||||||
|
)
|
||||||
|
|
||||||
async def on_close(self) -> None:
|
async def on_close(self) -> None:
|
||||||
await self.client.send(packets.SessionClose(self.session_id, self.route_key))
|
await self.client.send(packets.SessionClose(self.session_id, self.route_key))
|
||||||
|
|||||||
Reference in New Issue
Block a user