Retry initial connection attempt should it fail (#1335)

Sometimes the initial selected node could fail. In that case, we'll give it a few more attempts to locate a media node for the session instead of failing it after the first try.

(cherry picked from commit 2fa46e2df4)
This commit is contained in:
David Zhao authored and Mathew Kamkar committed 2023-02-03 15:25:40 -08:00
1 parent 6a8e86c3a3
commit 93e8bba71d
3 files changed
+96 -36

No files matched your search

+2
View File
@@ -16,6 +16,7 @@ import (
// MessageSink is an abstraction for writing protobuf messages and having them read by a MessageSource,
// potentially on a different node via a transport
//
//counterfeiter:generate . MessageSink
type MessageSink interface {
WriteMessage(msg proto.Message) error
@@ -57,6 +58,7 @@ type RTCMessageCallback func(
)
// Router allows multiple nodes to coordinate the participant session
//
//counterfeiter:generate . Router
type Router interface {
MessageRouter