Merge pull request #1359 from WyattMufson/swift-fixes

Fix swift warnings
This commit is contained in:
Erik Little 2021-06-19 12:36:38 -04:00 committed by GitHub
commit 07f2d08981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -751,7 +751,7 @@ extension SocketEngine {
case .cancelled:
wsConnected = false
websocketDidDisconnect(error: EngineError.canceled)
case let .disconnected(reason, code):
case .disconnected(_, _):
wsConnected = false
websocketDidDisconnect(error: nil)
case let .text(msg):

View File

@ -27,7 +27,7 @@ import Foundation
import Starscream
/// Specifies a SocketEngine.
public protocol SocketEngineSpec: class {
public protocol SocketEngineSpec: AnyObject {
// MARK: Properties
/// The client for this engine.

View File

@ -45,7 +45,7 @@ import Foundation
/// To disconnect a socket and remove it from the manager, either call `SocketIOClient.disconnect()` on the socket,
/// or call one of the `disconnectSocket` methods on this class.
///
public protocol SocketManagerSpec : AnyObject, SocketEngineClient {
public protocol SocketManagerSpec : SocketEngineClient {
// MARK: Properties
/// Returns the socket associated with the default namespace ("/").