small tweak to readme
This commit is contained in:
parent
7bdf80d133
commit
492ae89344
@ -12,7 +12,7 @@ socket.on("connect") {data, ack in
|
|||||||
}
|
}
|
||||||
|
|
||||||
socket.on("currentAmount") {data, ack in
|
socket.on("currentAmount") {data, ack in
|
||||||
if let cur = data?[0] as? Double {
|
if let cur = data[0] as? Double {
|
||||||
socket.emitWithAck("canUpdate", cur)(timeoutAfter: 0) {data in
|
socket.emitWithAck("canUpdate", cur)(timeoutAfter: 0) {data in
|
||||||
socket.emit("update", ["amount": cur + 2.50])
|
socket.emit("update", ["amount": cur + 2.50])
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user