change api
This commit is contained in:
parent
b0020997c4
commit
9512c8b9ac
@ -53,7 +53,7 @@ Methods
|
|||||||
6. `socket.emitWithAckObjc(event:String, withItems items:[AnyObject]) -> SocketAckHandler` - `emitWithAck` for Objective-C.
|
6. `socket.emitWithAckObjc(event:String, withItems items:[AnyObject]) -> SocketAckHandler` - `emitWithAck` for Objective-C.
|
||||||
7. `socket.connect()` - Establishes a connection to the server. A "connect" event is fired upon successful connection.
|
7. `socket.connect()` - Establishes a connection to the server. A "connect" event is fired upon successful connection.
|
||||||
8. `socket.connectWithParams(params:[String: AnyObject])` - Establishes a connection to the server passing the specified params. A "connect" event is fired upon successful connection.
|
8. `socket.connectWithParams(params:[String: AnyObject])` - Establishes a connection to the server passing the specified params. A "connect" event is fired upon successful connection.
|
||||||
9. `socket.close(fast:Bool)` - Closes the socket. Once a socket is closed it should not be reopened. Pass true to fast if you're closing from a background task.
|
9. `socket.close(#fast:Bool)` - Closes the socket. Once a socket is closed it should not be reopened. Pass true to fast if you're closing from a background task.
|
||||||
|
|
||||||
Events
|
Events
|
||||||
------
|
------
|
||||||
|
|||||||
@ -133,7 +133,7 @@ public class SocketIOClient: NSObject, SocketEngineClient {
|
|||||||
Will turn off automatic reconnects.
|
Will turn off automatic reconnects.
|
||||||
Pass true to fast if you're closing from a background task
|
Pass true to fast if you're closing from a background task
|
||||||
*/
|
*/
|
||||||
public func close(fast:Bool = false) {
|
public func close(#fast:Bool) {
|
||||||
self.reconnects = false
|
self.reconnects = false
|
||||||
self._connecting = false
|
self._connecting = false
|
||||||
self._connected = false
|
self._connected = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user