Skip to content

Commit

Permalink
Kitura/Kitura#33 Added dummy implementations of the newer functions o…
Browse files Browse the repository at this point in the history
…f the WebSocketService to the test
  • Loading branch information
shmuelk committed Nov 3, 2016
1 parent b396a72 commit b1fc21e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Tests/KituraWebSocketTests/BasicTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,17 @@ class BasicTests: XCTestCase {
print("Connected")
}

public func disconnected(client: WebSocketClient){
public func disconnected(client: WebSocketClient) {
print("disconnected")
}

public func received(message: Data, from: WebSocketClient) {
print("Received a binary message of length \(message.count)")
}

public func received(message: String, from: WebSocketClient) {
print("Received a String message of length \(message.characters.count)")
}
}

class TestServerDelegate : ServerDelegate {
Expand Down

0 comments on commit b1fc21e

Please sign in to comment.