Skip to content

Commit

Permalink
Kitura/Kitura#33 Provide a default value for the optional withMessage…
Browse files Browse the repository at this point in the history
… parameter for ping.
  • Loading branch information
shmuelk committed Jan 4, 2017
1 parent 01a4e7f commit 699d712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KituraWebSocket/WebSocketClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class WebSocketClient {
/// Send a ping control frame to the client
///
/// - Parameter withMessage: An optional string to be included in the ping control frame.
public func ping(withMessage: String?) {
public func ping(withMessage: String?=nil) {
guard active else { return }

if let message = withMessage {
Expand Down

0 comments on commit 699d712

Please sign in to comment.