From 961fd34f3d1af9649512a0ed46472318d8901996 Mon Sep 17 00:00:00 2001 From: Erik Date: Sat, 20 May 2017 21:37:04 -0400 Subject: [PATCH] Remove void parameter from onConnect, Swift4 would require passing () into it --- Source/WebSocket.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?