connectToServer

TrueConfLess than 1 minute

connectToServer

Description: connect to the server. Admin

A positive response indicates that the command has been accepted for execution. The connection result will be reported separately.

The successful server connection will be indicated by:

  1. Upon receiving the serverConnected notification

  2. On the change of the current connection status in appStateChanged

Request example:

{
    "method" : "connectToServer",
    "requestId" : "1",
    "server" : "192.168.0.102",
    "port" : 4307
}

Response example:

{
    "method" : "connectToServer",
    "requestId" : "1",
    "result" : true
}

Parameter description:

  • server — Server to connect to

  • port — Port. This parameter is optional. If it is not specified, the default port will be used.

  • requestId - a unique request identifier. You can find more details about it here.

See also: