diff --git a/Source/WebSocket.swift b/Source/WebSocket.swift index ca164ef2..469da6be 100644 --- a/Source/WebSocket.swift +++ b/Source/WebSocket.swift @@ -119,7 +119,7 @@ open class WebSocket : NSObject, StreamDelegate { // MARK: - Block based API. - public var onConnect: ((Void) -> Void)? + public var onConnect: (() -> Void)? public var onDisconnect: ((NSError?) -> Void)? public var onText: ((String) -> Void)? public var onData: ((Data) -> Void)?