Skip to content

Commit b9fd6c9

Browse files
committed
document new option
1 parent f001b83 commit b9fd6c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ case Reconnects(Bool) // Whether to reconnect on server lose. Default is `true`
134134
case ReconnectAttempts(Int) // How many times to reconnect. Default is `-1` (infinite tries)
135135
case ReconnectWait(Int) // Amount of time to wait between reconnects. Default is `10`
136136
case ForcePolling(Bool) // `true` forces the client to use xhr-polling. Default is `false`
137+
case ForceNew(Bool) // Will a create a new engine for each connect. Useful if you find a bug in the engine related to reconnects
137138
case ForceWebsockets(Bool) // `true` forces the client to use WebSockets. Default is `false`
138139
case Nsp(String) // The namespace to connect to. Must begin with /. Default is `/`
139140
case Cookies([NSHTTPCookie]) // An array of NSHTTPCookies. Passed during the handshake. Default is nil.
@@ -145,6 +146,7 @@ case ExtraHeaders([String: String]) // Adds custom headers to the initial reques
145146
case HandleQueue(dispatch_queue_t) // The dispatch queue that handlers are run on. Default is the main queue.
146147
case VoipEnabled(Bool) // Only use this option if you're using the client with VoIP services. Changes the way the WebSocket is created. Default is false
147148
case Secure(Bool) // If the connection should use TLS. Default is false.
149+
148150
```
149151
Methods
150152
-------

0 commit comments

Comments
 (0)