We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bdf80d commit 492ae89Copy full SHA for 492ae89
README.md
@@ -12,7 +12,7 @@ socket.on("connect") {data, ack in
12
}
13
14
socket.on("currentAmount") {data, ack in
15
- if let cur = data?[0] as? Double {
+ if let cur = data[0] as? Double {
16
socket.emitWithAck("canUpdate", cur)(timeoutAfter: 0) {data in
17
socket.emit("update", ["amount": cur + 2.50])
18
0 commit comments