Setting up the application in a HyperServer cluster

If you plan to connect to a dedicated WebSockets server from an application running in a HyperServer cluster, there is no need to change parameters in the application itself. All relevant settings must be changed in the HyperServer CFG file. If the HyperServer cluster is a server farm, the master server and slave servers that run in Mode 2 should be configured properly.

If you examine the CFG file you will notice the same parameters are also available under the [websockets] section:

hyperserver.cfg
[websockets]

enabled=1
app_domain=
aux_port=0
max_queue_length=1000
binding=
global_binding=
global_port=0
external_server_url=
external_server_token=

From the above parameters you need to adjust the same parameters that are indicated in the Setting up the application section: https://unigui.com/doc/online_help/setting-up-the-application.htm

The parameters to set are:

  • global_binding

  • external_server_url

  • external_server_token

circle-info

It is also recommended to assign a unique string to the app_domain parameter.