diff --git a/Podfile b/Podfile index cf47762d..cd48d841 100644 --- a/Podfile +++ b/Podfile @@ -1,5 +1,5 @@ # Uncomment the next line to define a global platform for your project -platform :ios, '10.0' +platform :ios, '11.0' target 'TelnyxWebRTCDemo' do # Comment the next line if you don't want to use dynamic frameworks @@ -16,7 +16,7 @@ target 'TelnyxRTC' do # Pods for TelnyxRTC pod 'Bugsnag', '~> 6.9.1' - pod 'Starscream', '~> 4.0.4' + pod 'Starscream', '~> 4.0.6' pod 'WebRTC-lib', "~> 94.0.0" target 'TelnyxRTCTests' do diff --git a/TelnyxRTC.podspec b/TelnyxRTC.podspec index 0002e321..98b9af10 100644 --- a/TelnyxRTC.podspec +++ b/TelnyxRTC.podspec @@ -10,7 +10,7 @@ Pod::Spec.new do |spec| spec.author = { "Telnyx LLC" => "mobile.app.eng.chapter@telnyx.com" } spec.source = { :git => "https://github.com/team-telnyx/telnyx-webrtc-ios.git", :tag => "#{spec.version}" } - spec.platform = :ios, "10.0" + spec.platform = :ios, "11.0" spec.swift_version = "5.0" spec.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64', @@ -22,6 +22,6 @@ Pod::Spec.new do |spec| spec.exclude_files = "TelnyxRTC/Exclude" spec.dependency "Bugsnag", "~> 6.9.1" - spec.dependency "Starscream", "~> 4.0.4" + spec.dependency "Starscream", "~> 4.0.6" spec.dependency "WebRTC-lib", "~> 94.0.0" end diff --git a/TelnyxRTC/Telnyx/Services/Socket.swift b/TelnyxRTC/Telnyx/Services/Socket.swift index d1a168e1..3fe43cd1 100644 --- a/TelnyxRTC/Telnyx/Services/Socket.swift +++ b/TelnyxRTC/Telnyx/Services/Socket.swift @@ -47,7 +47,7 @@ class Socket { // MARK:- WebSocketDelegate extension Socket : WebSocketDelegate { - func didReceive(event: WebSocketEvent, client: WebSocket) { + func didReceive(event: WebSocketEvent, client: WebSocketClient) { switch event { case .connected(let headers): isConnected = true @@ -94,6 +94,10 @@ extension Socket : WebSocketDelegate { break case .reconnectSuggested(_): break + case .peerClosed: + break + @unknown default: + break } } }