change another method name

This commit is contained in:
Erik 2016-07-16 22:27:50 -04:00
parent f140d7979e
commit e961e11487
No known key found for this signature in database
GPG Key ID: 4930B7C5FBC1A69D
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ struct SocketEventHandler {
let id: UUID
let callback: NormalCallback
func executeCallback(_ items: [AnyObject], withAck ack: Int, withSocket socket: SocketIOClient) {
func executeCallback(with items: [AnyObject], withAck ack: Int, withSocket socket: SocketIOClient) {
callback(items, SocketAckEmitter(socket: socket, ackNum: ack))
}
}

View File

@ -315,7 +315,7 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
self.anyHandler?(SocketAnyEvent(event: event, items: data))
for handler in self.handlers where handler.event == event {
handler.executeCallback(data, withAck: ack, withSocket: self)
handler.executeCallback(with: data, withAck: ack, withSocket: self)
}
}
}