Skip to content

Commit 9512c8b

Browse files
committed
change api
1 parent b002099 commit 9512c8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Methods
5353
6. `socket.emitWithAckObjc(event:String, withItems items:[AnyObject]) -> SocketAckHandler` - `emitWithAck` for Objective-C.
5454
7. `socket.connect()` - Establishes a connection to the server. A "connect" event is fired upon successful connection.
5555
8. `socket.connectWithParams(params:[String: AnyObject])` - Establishes a connection to the server passing the specified params. A "connect" event is fired upon successful connection.
56-
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.
56+
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.
5757

5858
Events
5959
------

SwiftIO/SocketIOClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public class SocketIOClient: NSObject, SocketEngineClient {
133133
Will turn off automatic reconnects.
134134
Pass true to fast if you're closing from a background task
135135
*/
136-
public func close(fast:Bool = false) {
136+
public func close(#fast:Bool) {
137137
self.reconnects = false
138138
self._connecting = false
139139
self._connected = false

0 commit comments

Comments
 (0)