From 0ae17f8a73760c599f0a2f74c6547ae4997aacc2 Mon Sep 17 00:00:00 2001 From: Erik Little Date: Wed, 4 Feb 2015 16:15:30 -0500 Subject: [PATCH 1/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 55be603..e559b95 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,8 @@ Events let socket = SocketIOClient(socketURL: "https://localhost:8080", opts: [ "reconnects": true, // default true "reconnectAttempts": 5, // default -1 (infinite tries) - "reconnectWait": 5 // default 10 + "reconnectWait": 5, // default 10 + "nsp": "swift" // connects to the specified namespace. Default is / ]) // Socket Events From 3d3de4ad574095dbdcfa3de2dbd4a06957148832 Mon Sep 17 00:00:00 2001 From: Erik Little Date: Thu, 5 Feb 2015 16:40:36 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e559b95..2309504 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,9 @@ Events ------ 1. `connect` - Emitted when on a successful connection. 2. `disconnect` - Emitted when the connection is closed. -3. `reconnect` - Emitted when the connection is starting to reconnect. -4. `reconnectAttempt` - Emitted when attempting to reconnect. +3. `error` - Emitted if the websocket encounters an error. +4. `reconnect` - Emitted when the connection is starting to reconnect. +5. `reconnectAttempt` - Emitted when attempting to reconnect. ```swift // opts can be omitted, will use default values