From d8e2f603257a738fa1909e268a00f63adcfada70 Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Wed, 18 Sep 2024 15:53:12 -0700 Subject: [PATCH] protobuf --- protobufs/livekit_models.proto | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/protobufs/livekit_models.proto b/protobufs/livekit_models.proto index 3a90e6b2..fd6773d3 100644 --- a/protobufs/livekit_models.proto +++ b/protobufs/livekit_models.proto @@ -301,6 +301,36 @@ message ChatMessage { bool deleted = 5; // true to remove message } +message RpcMessage { + string id = 1; + string sender_sid = 2; + string recipient_sid = 3; + string name = 4; + string data = 5; + bool expects_response = 6; +} + +message RpcMessageAck { + string message_id = 1; + string sender_sid = 2; + string recipient_sid = 3; +} + +message RpcMessageResponse { + string message_id = 1; + string sender_sid = 2; + string recipient_sid = 3; + string data = 4; + int32 error_code = 5; // 0 or null means no error. // 1001+ are reserved for LiveKit internal errors. + string error_data = 6; +} + +message RpcMessageResponseAck { + string message_id = 1; + string sender_sid = 2; + string recipient_sid = 3; +} + enum ConnectionQuality { POOR = 0; GOOD = 1;