Skip to content

Commit

Permalink
Merge pull request #333 from nuclearace/master
Browse files Browse the repository at this point in the history
Remove void parameter from onConnect, Swift4 would require passi…
  • Loading branch information
daltoniam authored May 23, 2017
2 parents ee99332 + 961fd34 commit 02718e7
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 02718e7

Please sign in to comment.