Skip to content

Commit

Permalink
Update README with SendDataRequest example
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Jan 28, 2025
1 parent 7d66404 commit 5511069
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions LivekitApi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ await client.RemoveParticipant(removeParticipantRequest);
// Delete room
var deleteRoomRequest = new DeleteRoomRequest { Room = "room-name" };
await client.DeleteRoom(deleteRoomRequest);

// Send data to room
var sendDataRequest = new SendDataRequest
{
Room = "room-name",
Data = ByteString.CopyFromUtf8("test-data"),
Kind = DataPacket.Types.Kind.Reliable,
};
await client.SendData(sendDataRequest);
```

## Egress Service
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ await client.RemoveParticipant(removeParticipantRequest);
// Delete room
var deleteRoomRequest = new DeleteRoomRequest { Room = "room-name" };
await client.DeleteRoom(deleteRoomRequest);

// Send data to room
var sendDataRequest = new SendDataRequest
{
Room = "room-name",
Data = ByteString.CopyFromUtf8("test-data"),
Kind = DataPacket.Types.Kind.Reliable,
};
await client.SendData(sendDataRequest);
```

## Egress Service
Expand Down

0 comments on commit 5511069

Please sign in to comment.