We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a06af14 commit 6992ea5Copy full SHA for 6992ea5
README.md
@@ -18,7 +18,7 @@ socket.on("currentAmount") {data, ack in
18
guard let cur = data[0] as? Double else { return }
19
20
socket.emitWithAck("canUpdate", cur).timingOut(after: 0) {data in
21
- if data.first as? String == SocketAckValue.noAck {
+ if data.first as? String ?? "passed" == SocketAckValue.noAck {
22
// Handle ack timeout
23
}
24
0 commit comments