Merge branch 'master' of https://github.com/nuclearace/Socket.IO-Client-Swift
This commit is contained in:
commit
a1296fa439
@ -15,7 +15,7 @@ API
|
|||||||
===
|
===
|
||||||
Constructor
|
Constructor
|
||||||
-----------
|
-----------
|
||||||
`init(socketURL: String, opts[String: AnyObject]? = nil)` - Constructs a new client for the given URL. opts can be omitted (will use default values.)
|
`init(socketURL: String, opts:[String: AnyObject]? = nil)` - Constructs a new client for the given URL. opts can be omitted (will use default values.)
|
||||||
Methods
|
Methods
|
||||||
-------
|
-------
|
||||||
1. `socket.on(name:String, callback:((data:NSArray?, ack:AckEmitter?) -> Void))` - Adds a handler for an event. Items are passed by an array. `ack` can be used to send an ack when one is requested. See example.
|
1. `socket.on(name:String, callback:((data:NSArray?, ack:AckEmitter?) -> Void))` - Adds a handler for an event. Items are passed by an array. `ack` can be used to send an ack when one is requested. See example.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user