You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,10 @@ Methods
47
47
-------
48
48
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.
49
49
2.`socket.onAny(callback:((event:String, items:AnyObject?)) -> Void)` - Adds a handler for all events. It will be called on any received event.
50
-
3.`socket.emit(event:String, args:AnyObject...)` - Sends a message. Can send multiple args.
51
-
4.`socket.emitObjc(event:String, args:[AnyObject])` - `emit` for Objective-C
52
-
5.`socket.emitWithAck(event:String, args:AnyObject...) -> SocketAckHandler` - Sends a message that requests an acknowledgement from the server. Returns a SocketAckHandler which you can use to add an onAck handler. See example.
53
-
6.`socket.emitWithAckObjc(event:String, _ args:[AnyObject]) -> SocketAckHandler` - `emitWithAck` for Objective-C.
50
+
3.`socket.emit(event:String, _ args:AnyObject...)` - Sends a message. Can send multiple args.
51
+
4.`socket.emitObjc(event:String, withItems items:[AnyObject])` - `emit` for Objective-C
52
+
5.`socket.emitWithAck(event:String, _ args:AnyObject...) -> SocketAckHandler` - Sends a message that requests an acknowledgement from the server. Returns a SocketAckHandler which you can use to add an onAck handler. See example.
53
+
6.`socket.emitWithAckObjc(event:String, withItems items:[AnyObject]) -> SocketAckHandler` - `emitWithAck` for Objective-C.
54
54
7.`socket.connect()` - Establishes a connection to the server. A "connect" event is fired upon successful connection.
55
55
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
56
9.`socket.close()` - Closes the socket. Once a socket is closed it should not be reopened.
0 commit comments