nuclearace / Socket.IO-Client-Swift

socket.io-client for Swift
Other
361 stars 53 forks source link

ack have no member with #77

Closed longxianlin closed 9 years ago

longxianlin commented 9 years ago

···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

longxianlin commented 9 years ago

change to ack?("Got your currentAmount", "dude")

nuclearace commented 9 years ago

You're on an older version of the client if you're getting that error