From b42adfcfb884c7257e7638a1062504499499cac4 Mon Sep 17 00:00:00 2001 From: Erik Little Date: Mon, 19 Jan 2015 22:16:54 -0500 Subject: [PATCH 1/2] Clarify what version of socket.io is supported. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f146303..3d05f9e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Socket.IO-Client-Swift ====================== -Socket.IO-client for Swift. Supports ws/wss connections and binary +Socket.IO-client for Swift. Supports ws/wss connections and binary. For socket.io 1.0+ Installation ============ From ecaf202d9611ea2ddb9e80ee4f1537ed818b577e Mon Sep 17 00:00:00 2001 From: Erik Little Date: Mon, 19 Jan 2015 22:21:01 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3d05f9e..3e2658d 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,9 @@ Methods ------- 1. `socket.on(name:String, callback:((data:AnyObject?) -> Void))` - Adds a handler for an event. 2. `socket.onMultipleArgs(name:String, callback:((data:[AnyObject]) -> Void))` - Adds a handler for an event that can have multiple items. Items are stored in an array. -3. `socket.emit(event:String, args:AnyObject? = nil)` - Sends an event with optional arg. -4. `socket.emitMultiple(event:String, args:AnyObject...)` - Sends an event with multiple args. -5. `socket.connect()` - Establishes a connection to the server. A "connect" event is fired upon successful connection. -6. `socket.close()` - Closes the socket. Once a socket is closed it should not be reopened. +3. `socket.emit(event:String, args:AnyObject...)` - Sends a message. Can send multiple args. +4. `socket.connect()` - Establishes a connection to the server. A "connect" event is fired upon successful connection. +5. `socket.close()` - Closes the socket. Once a socket is closed it should not be reopened. ```swift // opts can be omitted, will use default values