Deployed f090c76 with MkDocs version: 1.1.2

This commit is contained in:
2021-03-08 03:30:07 +00:00
parent 4d51179819
commit a65bc2ab16
6 changed files with 25 additions and 10 deletions

View File

@ -103,6 +103,10 @@
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="2"><a href="#handshake-timeout" class="nav-link">Handshake timeout</a>
<ul class="nav flex-column">
</ul>
</li>
<li class="nav-item" data-level="2"><a href="#websocket-server-api" class="nav-link">WebSocket server API</a>
<ul class="nav flex-column">
</ul>
@ -330,6 +334,11 @@ Wait time(ms): 10000
<pre><code class="language-cpp">webSocket.setMaxWaitBetweenReconnectionRetries(5 * 1000); // 5000ms = 5s
uint32_t m = webSocket.getMaxWaitBetweenReconnectionRetries();
</code></pre>
<h2 id="handshake-timeout">Handshake timeout</h2>
<p>You can control how long to wait until timing out while waiting for the websocket handshake to be performed.</p>
<pre><code>int handshakeTimeoutSecs = 1;
setHandshakeTimeout(handshakeTimeoutSecs);
</code></pre>
<h2 id="websocket-server-api">WebSocket server API</h2>
<h3 id="legacy-api">Legacy api</h3>
<p>This api was actually changed to take a weak_ptr<WebSocket> as the first argument to setOnConnectionCallback ; previously it would take a shared_ptr<WebSocket> which was creating cycles and then memory leaks problems.</p>