correct SocketActStatus in example code

This commit is contained in:
humanfriend22 2023-03-10 04:03:36 +00:00
parent a1ed825835
commit 8837d4a0d8

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 ?? "passed" == SocketAckValue.noAck {
if data.first as? String ?? "passed" == SocketAckStatus.noAck {
// Handle ack timeout
}