change method name

This commit is contained in:
Erik 2016-07-16 21:27:18 -04:00
parent afa27e4173
commit f140d7979e
No known key found for this signature in database
GPG Key ID: 4930B7C5FBC1A69D

View File

@ -394,11 +394,11 @@ public final class SocketEngine : NSObject, SocketEnginePollable, SocketEngineWe
}
}
private func handlePong(_ pongMessage: String) {
private func handlePong(with message: String) {
pongsMissed = 0
// We should upgrade
if pongMessage == "3probe" {
if message == "3probe" {
upgradeTransport()
}
}
@ -436,7 +436,7 @@ public final class SocketEngine : NSObject, SocketEnginePollable, SocketEngineWe
case .noop:
handleNOOP()
case .pong:
handlePong(fixedString)
handlePong(with: fixedString)
case .open:
handleOpen(openData: fixedString[fixedString.characters.index(after: fixedString.characters.startIndex)..<fixedString.endIndex])
case .close: