SocketIOTransportDelegate
Socket.io transport delegate.
-
Connection options.
Declaration
Swift
var options: SocketIOOptions { get }
-
Tells the delegate that the transport suffer from a problem.
Declaration
Swift
func failure(event: SocketIOEvent, withError error: SocketIOError)
Parameters
event
System event.
error
Socket.io error.
-
Tells the delegate that the transport did receive a text message.
Declaration
Swift
func didReceiveMessage(event: String, withString message: String)
Parameters
event
Event name.
message
Text message.
-
Tells the delegate that the transport did receive a list of items.
Declaration
Swift
func didReceiveMessage(event: String, withList list: NSArray)
Parameters
event
Event name.
list
List of items.
-
Tells the delegate that the transport did receive a dictionary.
Declaration
Swift
func didReceiveMessage(event: String, withDictionary dict: NSDictionary)
Parameters
event
Event name.
dict
Data dictionary.