Command line options
Websocketserver is a PyQt application that can be run with the ADR supplied cpython interpreter. The resulting command line looks like this:
Websocketserver will listen for incoming websocket requests on the port specified
by ws_server_port. In the basic mode of operation, the host and port specified
by —client_hostname and —client_port will be served up in response to incoming
requests.
Websocketserver includes a reservation and launching mechanism that can support
local, preconfigured services such as EnSight and EnVision or more complex,
scripted operations via custom service configurations. A specific example of
local services is illustrated in the Builtin service operation section.
More complex operations can be configured using the —remote_session_config
mechanism outlined in the External services section.
The server can also provide HTTP based services if the —http_directory option
is specified. If it is, the files in the directory specified by that option
will be served up via HTTP on the port specified by —http_port. Enabling the
HTTP server also enables a REST API that can be used to interact
with the server via HTTP GET requests and a /ansys redirect HTTP Server
which simplifies the deployment of tools that leverage the Ansys ADR 3D viewer
web component.
The timeout option specifies that a reservation that is made, but left unused
for some number of seconds may be reclaimed by the system (e.g. the user reserved
a service instance but did not activate it while viewing a web page containing
the reservation token). The default timeout is 5min (300s) if left unspecified.
Was this page helpful?