From fdf64bf89ad91c24d55b503e823368b2be14c501 Mon Sep 17 00:00:00 2001 From: Neil Dwyer Date: Fri, 12 Jul 2024 09:39:00 -0700 Subject: [PATCH] reliable --- livekit-rtc/livekit/rtc/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/livekit-rtc/livekit/rtc/chat.py b/livekit-rtc/livekit/rtc/chat.py index 5bcae348..66436ead 100644 --- a/livekit-rtc/livekit/rtc/chat.py +++ b/livekit-rtc/livekit/rtc/chat.py @@ -61,7 +61,7 @@ async def send_message(self, message: str) -> "ChatMessage": ) await self._lp.publish_data( payload=json.dumps(msg.asjsondict()), - kind=DataPacketKind.KIND_RELIABLE, + reliable=True, topic=_CHAT_TOPIC, ) return msg @@ -74,7 +74,7 @@ async def update_message(self, message: "ChatMessage"): """ await self._lp.publish_data( payload=json.dumps(message.asjsondict()), - kind=DataPacketKind.KIND_RELIABLE, + reliable=True, topic=_CHAT_UPDATE_TOPIC, )