From e141e4ec4ab581a9892e5581ef90e57a7f8a1e72 Mon Sep 17 00:00:00 2001 From: Erik Little Date: Tue, 3 Feb 2015 13:58:34 -0500 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2efbf23..55be603 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Constructor Methods ------- 1. `socket.on(name:String, callback:((data:AnyObject?) -> Void))` - Adds a handler for an event. -2. `socket.onMultipleItems(name:String, callback:((data:AnyObject...) -> Void))` - Adds a handler for an event that can have multiple items. Items are stored in an array. +2. `socket.onMultipleItems(name:String, callback:((data:NSArray?) -> 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...)` - 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.