Skip to content

Commit

Permalink
simplify reconnect and remove clean strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
thesyncim committed Aug 5, 2024
1 parent c93dc74 commit 002ba80
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 32 deletions.
46 changes: 19 additions & 27 deletions protobuf/video/sfu/models/models.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions protobuf/video/sfu/models/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,9 @@ enum WebsocketReconnectStrategy {
// SDK should maintaining existing publisher/subscriber pc instances
// and establish a new WebSocket connection.
WEBSOCKET_RECONNECT_STRATEGY_FAST = 2;
// SDK should drop existing pc instances and creates a fresh WebSocket connection,
// ensuring a clean state for the reconnection.
WEBSOCKET_RECONNECT_STRATEGY_CLEAN = 3;
// SDK should obtain new credentials from the coordinator, drops existing pc instances, set a new session_id and initializes
// a completely new WebSocket connection, ensuring a comprehensive reset.
WEBSOCKET_RECONNECT_STRATEGY_REJOIN = 4;
WEBSOCKET_RECONNECT_STRATEGY_REJOIN = 3;
// SDK should migrate to a new SFU instance
WEBSOCKET_RECONNECT_STRATEGY_MIGRATE = 5;
WEBSOCKET_RECONNECT_STRATEGY_MIGRATE = 4;
};

0 comments on commit 002ba80

Please sign in to comment.