···swift
socket.on("currentAmount") {data, ack in
if data != nil {
if let cur = data![0] as? Double {
socket.emitWithAck("canUpdate", cur)(timeoutAfter: 0) {data in
socket.emit("update", ["amount": cur + 2.50])
}
ack?.with("Got your currentAmount", "dude")
}
}
}
···
ack error: have no member with
···swift socket.on("currentAmount") {data, ack in if data != nil { if let cur = data![0] as? Double { socket.emitWithAck("canUpdate", cur)(timeoutAfter: 0) {data in socket.emit("update", ["amount": cur + 2.50]) } ack?.with("Got your currentAmount", "dude") } } } ··· ack error: have no member with