Releases: socketio/socket.io-client-swift
Releases · socketio/socket.io-client-swift
v4.0.2
- Use SocketIOClientOption for SocketEngine
v4.0.1
- Fix engine not being released along with engine
v4.0.0
- 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
- Fix carthage builds
v3.1.5
- Fixed timeout handler being called after closing the connection
- Fixed crash where pointing to non socket.io server
v3.1.4
- Fixes a bug with error packets not being correctly handled
v3.1.3
- Fixes bug in WebSocket that could cause invalid upgrades.
- Fixes several crash cases relating to closing socket
v3.1.2
- Fixes namespaces
v3.1.1
- Add internal Either type
- Remove tvOS from master
v3.1.0
- 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.