# connectToServer
AdministratorDescription: 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:
Reception of the notification serverConnected
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 toport
— 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: