Socket.IO-Client-Swift icon indicating copy to clipboard operation
Socket.IO-Client-Swift copied to clipboard

Compression, ACKs

Open nuclearace opened this issue 10 years ago • 8 comments

  • [ ] Support Compression (Comes in 1.4)
  • [x] Support ACKs

nuclearace avatar Feb 13 '15 17:02 nuclearace

ACKs will come after #10 is merged, or possibly during that merge.

nuclearace avatar Feb 14 '15 05:02 nuclearace

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")

nuclearace avatar Feb 14 '15 22:02 nuclearace

#10 adds ACKs

nuclearace avatar Feb 14 '15 23:02 nuclearace

@nuclearace the .ackWith("msg", "data") is a very nice fluent API. Cool.

naartjie avatar Feb 17 '15 15:02 naartjie

Reopening to track compression

nuclearace avatar Mar 12 '15 20:03 nuclearace

@nuclearace Has any progress been made on compression? Thanks!

objectiveSee avatar Apr 05 '16 15:04 objectiveSee

It'd depend on the WebSocket dependency

nuclearace avatar Apr 05 '16 19:04 nuclearace

What's the latest status regarding compression?

jacobjiangwei avatar Apr 21 '16 03:04 jacobjiangwei