File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import Dispatch
26
26
import Foundation
27
27
28
28
/// Defines the interface for a SocketIOClient.
29
- public protocol SocketIOClientSpec : class {
29
+ public protocol SocketIOClientSpec : AnyObject {
30
30
// MARK: Properties
31
31
32
32
/// A handler that will be called on any event.
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import Foundation
46
46
/// or call one of the `disconnectSocket` methods on this class.
47
47
///
48
48
@objc
49
- public protocol SocketManagerSpec : class , SocketEngineClient {
49
+ public protocol SocketManagerSpec : AnyObject , SocketEngineClient {
50
50
// MARK: Properties
51
51
52
52
/// Returns the socket associated with the default namespace ("/").
Original file line number Diff line number Diff line change 23
23
import Foundation
24
24
25
25
/// Defines that a type will be able to parse socket.io-protocol messages.
26
- public protocol SocketParsable : class {
26
+ public protocol SocketParsable : AnyObject {
27
27
// MARK: Methods
28
28
29
29
/// Called when the engine has received some binary data that should be attached to a packet.
@@ -57,7 +57,7 @@ public enum SocketParsableError : Error {
57
57
}
58
58
59
59
/// Says that a type will be able to buffer binary data before all data for an event has come in.
60
- public protocol SocketDataBufferable : class {
60
+ public protocol SocketDataBufferable : AnyObject {
61
61
// MARK: Properties
62
62
63
63
/// A list of packets that are waiting for binary data.
Original file line number Diff line number Diff line change 25
25
import Foundation
26
26
27
27
/// Represents a class will log client events.
28
- public protocol SocketLogger : class {
28
+ public protocol SocketLogger : AnyObject {
29
29
// MARK: Properties
30
30
31
31
/// Whether to log or not
You can’t perform that action at this time.
0 commit comments