mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 00:02:53 +00:00
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:
1 parent
bd39a96eac
commit
2fa46e2df4
4 files changed
+102
-36
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user