(ixwebsocket) Expose setHandshakeTimeout method

This commit is contained in:
Benjamin Sergeant committed 2021-03-07 19:29:28 -08:00
1 parent 7c195219cd
commit f090c7659b
6 files changed
+37 -33

No files matched your search

+4
View File
@@ -2,6 +2,10 @@
All changes to this project will be documented in this file.
## [11.0.9] - 2021-03-07
(ixwebsocket) Expose setHandshakeTimeout method
## [11.0.8] - 2020-12-25
(ws) trim ws dependencies no more ixcrypto and ixcore deps
+9
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