Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify reconnect strategy #660

Merged
merged 4 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 23 additions & 31 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.

11 changes: 4 additions & 7 deletions protobuf/video/sfu/models/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,17 @@ enum CallEndedReason {
// WebsocketReconnectStrategy defines the ws strategies available for handling reconnections.
enum WebsocketReconnectStrategy {
WEBSOCKET_RECONNECT_STRATEGY_UNSPECIFIED = 0;
// Sent after reaching the maximum reconnection attempts, leading to permanent disconnect.
// Sent after reaching the maximum reconnection attempts, or any other unrecoverable error leading to permanent disconnect.
WEBSOCKET_RECONNECT_STRATEGY_DISCONNECT = 1;
// 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, and initializes
// 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_FULL = 4;
// SDK should obtain new credentials from the coordinator,excluding current SFU, drops existing pc instances, and initializes
// a completely new WebSocket connection, ensuring a comprehensive reset.
WEBSOCKET_RECONNECT_STRATEGY_FULL_NEW_SFU = 5;
WEBSOCKET_RECONNECT_STRATEGY_REJOIN = 4;
// SDK should migrate to a new SFU instance
WEBSOCKET_RECONNECT_STRATEGY_MIGRATE = 6;
WEBSOCKET_RECONNECT_STRATEGY_MIGRATE = 5;
};
Loading