8000 update examples for new operator · socketio/socket.io-client-swift@6992ea5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6992ea5

Browse files
committed
update examples for new operator
1 parent a06af14 commit 6992ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ socket.on("currentAmount") {data, ack in
1818
guard let cur = data[0] as? Double else { return }
1919

2020
socket.emitWithAck("canUpdate", cur).timingOut(after: 0) {data in
21-
if data.first as? String == SocketAckValue.noAck {
21+
if data.first as? String ?? "passed" == SocketAckValue.noAck {
2222
// Handle ack timeout
2323
}
2424

0 commit comments

Comments
 (0)
0