From a1a5b054ca496fce2cf761afd9df724ea8664f00 Mon Sep 17 00:00:00 2001 From: Erik Little Date: Mon, 23 Feb 2015 09:32:59 -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 b5f4dab..8a52279 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ API === Constructor ----------- -`init(socketURL: String, opts[String: AnyObject]? = nil)` - Constructs a new client for the given URL. opts can be omitted (will use default values.) +`init(socketURL: String, opts:[String: AnyObject]? = nil)` - Constructs a new client for the given URL. opts can be omitted (will use default values.) Methods ------- 1. `socket.on(name:String, callback:((data:AnyObject?) -> Void)) -> SocketAckHandler` - Adds a handler for an event. Returns a SocketAckHandler which can be used to ack an event. See example.