Merge pull request #1359 from WyattMufson/swift-fixes
Fix swift warnings
This commit is contained in:
commit
07f2d08981
@ -751,7 +751,7 @@ extension SocketEngine {
|
|||||||
case .cancelled:
|
case .cancelled:
|
||||||
wsConnected = false
|
wsConnected = false
|
||||||
websocketDidDisconnect(error: EngineError.canceled)
|
websocketDidDisconnect(error: EngineError.canceled)
|
||||||
case let .disconnected(reason, code):
|
case .disconnected(_, _):
|
||||||
wsConnected = false
|
wsConnected = false
|
||||||
websocketDidDisconnect(error: nil)
|
websocketDidDisconnect(error: nil)
|
||||||
case let .text(msg):
|
case let .text(msg):
|
||||||
|
|||||||
@ -27,7 +27,7 @@ import Foundation
|
|||||||
import Starscream
|
import Starscream
|
||||||
|
|
||||||
/// Specifies a SocketEngine.
|
/// Specifies a SocketEngine.
|
||||||
public protocol SocketEngineSpec: class {
|
public protocol SocketEngineSpec: AnyObject {
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|
||||||
/// The client for this engine.
|
/// The client for this engine.
|
||||||
|
|||||||
@ -45,7 +45,7 @@ import Foundation
|
|||||||
/// To disconnect a socket and remove it from the manager, either call `SocketIOClient.disconnect()` on the socket,
|
/// 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.
|
/// or call one of the `disconnectSocket` methods on this class.
|
||||||
///
|
///
|
||||||
public protocol SocketManagerSpec : AnyObject, SocketEngineClient {
|
public protocol SocketManagerSpec : SocketEngineClient {
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|
||||||
/// Returns the socket associated with the default namespace ("/").
|
/// Returns the socket associated with the default namespace ("/").
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user