WebApplication.AcceptingConnections

From Xojo Documentation

Property (As Boolean )
aWebApplication.AcceptingConnections = newBooleanValue
or
BooleanValue = aWebApplication.AcceptingConnections

New in 2015r3

Supported for all project types and targets.

Allows you to Start/Stop a web app's ability to accept connections. Setting this property to False will stop the server(s) and disconnect all active sockets immediately.

Sample Code

Stop allowing connections:

App.AcceptingConnections = False