Skip to content

Commit 07f2d08

Browse files
authored
Merge pull request socketio#1359 from WyattMufson/swift-fixes
Fix swift warnings
2 parents 8d9a613 + 9609774 commit 07f2d08

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Source/SocketIO/Engine/SocketEngine.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ extension SocketEngine {
751751
case .cancelled:
752752
wsConnected = false
753753
websocketDidDisconnect(error: EngineError.canceled)
754-
case let .disconnected(reason, code):
754+
case .disconnected(_, _):
755755
wsConnected = false
756756
websocketDidDisconnect(error: nil)
757757
case let .text(msg):

Source/SocketIO/Engine/SocketEngineSpec.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import Foundation
2727
import Starscream
2828

2929
/// Specifies a SocketEngine.
30-
public protocol SocketEngineSpec: class {
30+
public protocol SocketEngineSpec: AnyObject {
3131
// MARK: Properties
3232

3333
/// The client for this engine.

Source/SocketIO/Manager/SocketManagerSpec.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import Foundation
4545
/// To disconnect a socket and remove it from the manager, either call `SocketIOClient.disconnect()` on the socket,
4646
/// or call one of the `disconnectSocket` methods on this class.
4747
///
48-
public protocol SocketManagerSpec : AnyObject, SocketEngineClient {
48+
public protocol SocketManagerSpec : SocketEngineClient {
4949
// MARK: Properties
5050

5151
/// Returns the socket associated with the default namespace ("/").

0 commit comments

Comments
 (0)