rework multi-node routing, cleaner design for reconnection

This commit is contained in:
David Zhao
2021-01-30 22:24:08 -08:00
parent 28e73bd109
commit 2cf2c448be
23 changed files with 702 additions and 661 deletions
+27 -8
View File
@@ -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 {