Skip to content

Commit 4e362d6

Browse files
committed
feat: add server rpc apis
1 parent 7b3b388 commit 4e362d6

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

protobufs/livekit_room.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ service RoomService {
7272
// The participant will be removed from the current room and added to the destination room.
7373
// From the other observers' perspective, the participant would've disconnected from the previous room and joined the new one.
7474
rpc MoveParticipant(MoveParticipantRequest) returns (MoveParticipantResponse);
75+
76+
rpc PerformRpc(PerformRpcRequest) returns (PerformRpcResponse);
7577
}
7678

7779
message CreateRoomRequest {
@@ -268,3 +270,16 @@ message MoveParticipantRequest {
268270

269271
message MoveParticipantResponse {
270272
}
273+
274+
message PerformRpcRequest {
275+
string room = 1;
276+
string destination_identity = 2;
277+
string method = 3;
278+
string payload = 4;
279+
uint32 response_timeout_ms = 5;
280+
}
281+
282+
message PerformRpcResponse {
283+
string payload = 1;
284+
}
285+

protobufs/rpc/participant.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,14 @@ service Participant {
8383
};
8484
};
8585
};
86+
rpc PerformRpc(livekit.PerformRpcRequest) returns (livekit.PerformRpcResponse) {
87+
option (psrpc.options) = {
88+
topics: true
89+
topic_params : {
90+
group: "participant"
91+
names: ["participant"]
92+
typed: true
93+
};
94+
};
95+
};
8696
}

0 commit comments

Comments
 (0)