ricardopereira / SocketIO-Kit

Socket.io iOS and OSX Client compatible with v1.0 and later
https://ricardopereira.github.io/SocketIO-Kit
MIT License
138 stars 12 forks source link

One callback for multiple events #19

Open ricardopereira opened 9 years ago

ricardopereira commented 9 years ago

Something similar to:

socket.on([.ConnectError, .TransportError]) {
    switch $0 {
    case .Failure(let error):
        println(error)
    default:
        break
    }
}