update readme

This commit is contained in:
Erik 2015-03-18 13:57:20 -04:00
parent 1a5487fec5
commit 0ca13c5496

View File

@ -68,11 +68,12 @@ Example
```swift ```swift
// opts can be omitted, will use default values // opts can be omitted, will use default values
let socket = SocketIOClient(socketURL: "https://localhost:8080", opts: [ let socket = SocketIOClient(socketURL: "https://localhost:8080", opts: [
"reconnects": true, // default true "reconnects": true, // Default is true
"reconnectAttempts": 5, // default -1 (infinite tries) "reconnectAttempts": 5, // Default is -1 (infinite tries)
"reconnectWait": 5, // default 10 "reconnectWait": 5, // Default is 10
"nsp": "swift", // connects to the specified namespace. Default is / "nsp": "swift", // connects to the specified namespace. Default is /
"forcePolling": true // if true, the socket will only use XHR polling, default is false (polling/WebSockets) "forcePolling": true, // if true, the socket will only use XHR polling, Default is false (polling/WebSockets)
"cookies": nil // An array of NSHTTPCookies. Passed during handshake. Default is nil
]) ])
// Called on every event // Called on every event