Skip to content

Commit

Permalink
Remove void parameter from onConnect, Swift4 would require passing ()…
Browse files Browse the repository at this point in the history
… into it
  • Loading branch information
nuclearace committed May 21, 2017
1 parent ee99332 commit 961fd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)?
Expand Down

0 comments on commit 961fd34

Please sign in to comment.