« Back to Product

Documentation

IPS_GetActiveWebServerConnections

 int IPS_GetActiveWebServerConnections ()

Returns

Number of currently open HTTP and HTTPS connections

Description

Warning

This function is intended for internal use only and may change or be removed at any time without notice.

The function returns the number of currently open HTTP and HTTPS connections across all servers operated by the web server of Symcon. This includes the default port 3777 as well as the ports of the WebServer instances.

WebSocket connections are not included, they are returned by IPS_GetActiveWebSocketConnections.

Example

echo "Open HTTP connections: " . IPS_GetActiveWebServerConnections();

/* e.g. returns:
Open HTTP connections: 4
*/
Any questions?