Skip to content

Commit

Permalink
set default protocol ver to v10
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Dec 11, 2023
1 parent e1c89f1 commit 7d8a661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Sources/LiveKit/Types/Options/ConnectOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class ConnectOptions: NSObject {
reconnectAttempts = 3
reconnectAttemptDelay = .defaultReconnectAttemptDelay
iceServers = []
protocolVersion = .v9
protocolVersion = .v10
}

@objc
Expand All @@ -61,7 +61,7 @@ public class ConnectOptions: NSObject {
reconnectAttempts: Int = 3,
reconnectAttemptDelay: TimeInterval = .defaultReconnectAttemptDelay,
iceServers: [IceServer] = [],
protocolVersion: ProtocolVersion = .v9)
protocolVersion: ProtocolVersion = .v10)
{
self.autoSubscribe = autoSubscribe
self.publishOnlyMode = publishOnlyMode
Expand Down
7 changes: 1 addition & 6 deletions Sources/LiveKit/Types/ProtocolVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,9 @@ import Foundation

@objc
public enum ProtocolVersion: Int {
case v2 = 2
case v3 = 3
case v4 = 4
case v5 = 5
case v6 = 6
case v7 = 7
case v8 = 8
case v9 = 9
case v10 = 10
}

// MARK: - Comparable
Expand Down

0 comments on commit 7d8a661

Please sign in to comment.