# connectToServer

Administrator

Description: connect to the server.

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. Reception of the notification serverConnected

  2. The change in 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 learn more about it here.

See also: