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.
This commit is contained in:
David Zhao authored and GitHub committed 2023-01-25 22:59:57 -08:00
1 parent bd39a96eac
commit 2fa46e2df4
4 files changed
+102 -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