Skip to content

Commit 0ca13c5

Browse files
committed
update readme
1 parent 1a5487f commit 0ca13c5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ Example
6868
```swift
6969
// opts can be omitted, will use default values
7070
let socket = SocketIOClient(socketURL: "https://localhost:8080", opts: [
71-
"reconnects": true, // default true
72-
"reconnectAttempts": 5, // default -1 (infinite tries)
73-
"reconnectWait": 5, // default 10
71+
"reconnects": true, // Default is true
72+
"reconnectAttempts": 5, // Default is -1 (infinite tries)
73+
"reconnectWait": 5, // Default is 10
7474
"nsp": "swift", // connects to the specified namespace. Default is /
75-
"forcePolling": true // if true, the socket will only use XHR polling, default is false (polling/WebSockets)
75+
"forcePolling": true, // if true, the socket will only use XHR polling, Default is false (polling/WebSockets)
76+
"cookies": nil // An array of NSHTTPCookies. Passed during handshake. Default is nil
7677
])
7778

7879
// Called on every event

0 commit comments

Comments
 (0)