correct SocketActStatus in example code
This commit is contained in:
parent
a1ed825835
commit
8837d4a0d8
@ -18,7 +18,7 @@ socket.on("currentAmount") {data, ack in
|
|||||||
guard let cur = data[0] as? Double else { return }
|
guard let cur = data[0] as? Double else { return }
|
||||||
|
|
||||||
socket.emitWithAck("canUpdate", cur).timingOut(after: 0) {data in
|
socket.emitWithAck("canUpdate", cur).timingOut(after: 0) {data in
|
||||||
if data.first as? String ?? "passed" == SocketAckValue.noAck {
|
if data.first as? String ?? "passed" == SocketAckStatus.noAck {
|
||||||
// Handle ack timeout
|
// Handle ack timeout
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user