Socket.IO-Client-Swift
Socket.IO-Client-Swift copied to clipboard
Compression, ACKs
- [ ] Support Compression (Comes in 1.4)
- [x] Support ACKs
ACKs will come after #10 is merged, or possibly during that merge.
Acks will most likely have the form of
socket.on("ackEvent") {data in
if let str = data as? String {
println("Got ackEvent")
assert(str == "gakgakgak", "Failed ackEvent")
}
socket.emit("ackTest", "test").onAck {data in
println(data)
}
}.ackWith("I got your event", "dude")
#10 adds ACKs
@nuclearace the .ackWith("msg", "data")
is a very nice fluent API. Cool.
Reopening to track compression
@nuclearace Has any progress been made on compression? Thanks!
It'd depend on the WebSocket dependency
What's the latest status regarding compression?