update examples for new operator

This commit is contained in:
Erik Little 2019-11-25 14:37:13 -05:00
parent a06af14dd9
commit 6992ea5250
No known key found for this signature in database
GPG Key ID: 62F837E56F4E9320

View File

@ -18,7 +18,7 @@ socket.on("currentAmount") {data, ack in
guard let cur = data[0] as? Double else { return }
socket.emitWithAck("canUpdate", cur).timingOut(after: 0) {data in
if data.first as? String == SocketAckValue.noAck {
if data.first as? String ?? "passed" == SocketAckValue.noAck {
// Handle ack timeout
}