Deployed 70602c4e with MkDocs version: 1.5.3
				
					
				
			This commit is contained in:
		| @@ -12,12 +12,9 @@ | ||||
|         <link href="../css/bootstrap.min.css" rel="stylesheet"> | ||||
|         <link href="../css/font-awesome.min.css" rel="stylesheet"> | ||||
|         <link href="../css/base.css" rel="stylesheet"> | ||||
|         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/github.min.css"> | ||||
|  | ||||
|         <script src="../js/jquery-1.10.2.min.js" defer></script> | ||||
|         <script src="../js/bootstrap.min.js" defer></script> | ||||
|         <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script> | ||||
|         <script>hljs.initHighlightingOnLoad();</script>  | ||||
|         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css"> | ||||
|         <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script> | ||||
|         <script>hljs.highlightAll();</script>  | ||||
|     </head> | ||||
|  | ||||
|     <body> | ||||
| @@ -497,6 +494,12 @@ server.start(); | ||||
| // Block until server.stop() is called. | ||||
| server.wait(); | ||||
|  | ||||
| </code></pre> | ||||
| <h3 id="heartbeat_1">Heartbeat</h3> | ||||
| <p>You can configure an optional heartbeat / keep-alive for the WebSocket server. The heartbeat interval can be adjusted or disabled when constructing the <code>WebSocketServer</code>. Setting the interval to <code>-1</code> disables the heartbeat feature; this is the default setting. The parameter you set will be applied to every <code>WebSocket</code> object that the server creates.</p> | ||||
| <p>To enable a 45 second heartbeat on a <code>WebSocketServer</code>:</p> | ||||
| <pre><code class="language-cpp">int pingIntervalSeconds = 45; | ||||
| ix::WebSocketServer server(port, host, backlog, maxConnections, handshakeTimeoutSecs, addressFamily, pingIntervalSeconds); | ||||
| </code></pre> | ||||
| <h2 id="http-client-api">HTTP client API</h2> | ||||
| <pre><code class="language-cpp">#include <ixwebsocket/IXHttpClient.h> | ||||
| @@ -667,12 +670,14 @@ server.wait(); | ||||
|             <hr> | ||||
|             <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p> | ||||
|         </footer> | ||||
|         <script src="../js/jquery-3.6.0.min.js"></script> | ||||
|         <script src="../js/bootstrap.min.js"></script> | ||||
|         <script> | ||||
|             var base_url = "..", | ||||
|                 shortcuts = {"help": 191, "next": 78, "previous": 80, "search": 83}; | ||||
|         </script> | ||||
|         <script src="../js/base.js" defer></script> | ||||
|         <script src="../search/main.js" defer></script> | ||||
|         <script src="../js/base.js"></script> | ||||
|         <script src="../search/main.js"></script> | ||||
|  | ||||
|         <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="searchModalLabel" aria-hidden="true"> | ||||
|     <div class="modal-dialog modal-lg"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	