change api

This commit is contained in:
Erik 2015-03-25 12:02:45 -04:00
parent b0020997c4
commit 9512c8b9ac
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ Methods
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.
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
------

View File

@ -133,7 +133,7 @@ public class SocketIOClient: NSObject, SocketEngineClient {
Will turn off automatic reconnects.
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._connecting = false
self._connected = false