rework multi-node routing, cleaner design for reconnection
This commit is contained in:
+27
-8
@@ -24,20 +24,39 @@ message NodeStats {
|
||||
uint32 num_tracks_out = 6;
|
||||
}
|
||||
|
||||
// message for a node through the router
|
||||
message RouterMessage {
|
||||
// message to RTC nodes
|
||||
message RTCNodeMessage {
|
||||
string participant_key = 1;
|
||||
oneof message {
|
||||
StartSession start_session = 1;
|
||||
SignalRequest request = 2;
|
||||
SignalResponse response = 3;
|
||||
EndSession end_session = 4;
|
||||
StartSession start_session = 2;
|
||||
SignalRequest request = 3;
|
||||
}
|
||||
string participant_id = 5;
|
||||
}
|
||||
|
||||
// message to Signal nodes
|
||||
message SignalNodeMessage {
|
||||
string connection_id = 1;
|
||||
oneof message {
|
||||
SignalResponse response = 2;
|
||||
EndSession end_session = 3;
|
||||
}
|
||||
}
|
||||
|
||||
//message RouterMessage {
|
||||
// oneof message {
|
||||
// StartSession start_session = 1;
|
||||
// SignalRequest request = 2;
|
||||
// SignalResponse response = 3;
|
||||
// EndSession end_session = 4;
|
||||
// }
|
||||
// // empty for start session
|
||||
// string participant_key = 5;
|
||||
//}
|
||||
|
||||
message StartSession {
|
||||
string room_name = 1;
|
||||
string participant_name = 2;
|
||||
string identity = 2;
|
||||
string connection_id = 3;
|
||||
}
|
||||
|
||||
message EndSession {
|
||||
|
||||
Reference in New Issue
Block a user