(ixwebsocket) Expose setHandshakeTimeout method

This commit is contained in:
Benjamin Sergeant
2021-03-07 19:29:28 -08:00
parent 7c195219cd
commit f090c7659b
6 changed files with 37 additions and 33 deletions

View File

@ -263,6 +263,15 @@ webSocket.setMaxWaitBetweenReconnectionRetries(5 * 1000); // 5000ms = 5s
uint32_t m = webSocket.getMaxWaitBetweenReconnectionRetries();
```
## Handshake timeout
You can control how long to wait until timing out while waiting for the websocket handshake to be performed.
```
int handshakeTimeoutSecs = 1;
setHandshakeTimeout(handshakeTimeoutSecs);
```
## WebSocket server API
### Legacy api