Skip to content

Releases: socketio/socket.io-client-swift

v4.0.2

21 Oct 19:09
Compare
Choose a tag to compare
  • Use SocketIOClientOption for SocketEngine

v4.0.1

20 Oct 16:29
Compare
Choose a tag to compare
  • Fix engine not being released along with engine

v4.0.0

19 Oct 15:37
Compare
Choose a tag to compare
  • Change to a more typesafe options interface.

Instead of using a dictionary, it is now recommended you use a set of SocketIOClientOption.

let socket = SocketIOClient(socketURL: "", opts: ["log": true, "nsp": "/swift"])

Now becomes

let socket = SocketIOClient(socketURL: "", options: [.Log(true), .Nsp("/swift")])

v3.1.6

15 Oct 18:07
Compare
Choose a tag to compare
  • Fix carthage builds

v3.1.5

15 Oct 17:52
Compare
Choose a tag to compare
  • Fixed timeout handler being called after closing the connection
  • Fixed crash where pointing to non socket.io server

v3.1.4

01 Oct 01:08
Compare
Choose a tag to compare
  • Fixes a bug with error packets not being correctly handled

v3.1.3

29 Sep 12:54
Compare
Choose a tag to compare
  • Fixes bug in WebSocket that could cause invalid upgrades.
  • Fixes several crash cases relating to closing socket

v3.1.2

25 Sep 16:45
Compare
Choose a tag to compare
  • Fixes namespaces

v3.1.1

25 Sep 16:00
Compare
Choose a tag to compare
  • Add internal Either type
  • Remove tvOS from master

v3.1.0

22 Sep 20:32
Compare
Choose a tag to compare
  • This version includes breaking changes, but reconciles the Objective-C and Swift apis. Most notable are changes to how acking is done
socket.on("someEvent") {data, ack in
    ack?(1, 2, 4)
}

Would become

socket.on("someEvent") {data, ack in
    ack?.with(1, 2, 4)
}
  • The Objective-C method for adding events has been merged with the Swift method.
  • The event callback definition has been changed from (NSArray?, ((AnyObject...) -> Void)?) -> Void To ([AnyObject], SocketAckEmitter?) -> Void
  • A method has been added to execute an event only once.