Skip to content

Commit f943f41

Browse files
authored
Update SocketEngine.swift
Fix issue #101 Place code in handleOpen, according to suggestion: #602 (comment)
1 parent 494f3fa commit f943f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SocketEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ public final class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePoll
372372

373373
self.sid = sid
374374
connected = true
375+
pongsMissed = 0
375376

376377
if let upgrades = json["upgrades"] as? [String] {
377378
upgradeWs = upgrades.contains("websocket")
@@ -523,7 +524,6 @@ public final class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePoll
523524
connected = true
524525
probing = false
525526
polling = false
526-
pongsMissed = 0
527527
}
528528
}
529529

0 commit comments

Comments
 (0)