Skip to content

Commit 8dca16e

Browse files
Update protocol and add nonce to SendDataRequest (#349)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 124af3f commit 8dca16e

File tree

10 files changed

+403
-312
lines changed

10 files changed

+403
-312
lines changed

livekit-api/livekit/api/room_service.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import aiohttp
2+
from uuid import uuid4
23
from livekit.protocol.room import (
34
CreateRoomRequest,
45
ListRoomsRequest,
@@ -288,6 +289,8 @@ async def send_data(self, send: SendDataRequest) -> SendDataResponse:
288289
Returns:
289290
SendDataResponse: Empty response object
290291
"""
292+
293+
send.nonce = uuid4().bytes
291294
return await self._client.request(
292295
SVC,
293296
"SendData",

livekit-protocol/livekit/protocol/ingress.py

+36-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit-protocol/livekit/protocol/ingress.pyi

+12-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

livekit-protocol/livekit/protocol/models.py

+133-125
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)