connectToServer

TrueConf7/5/26Less than 1 minute

connectToServer

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 On_serverConnected
  2. The change in current connection status in On_appStateChanged
void connectToServer(string server, int port)

Parameters

NameDescription
serverServer to connect to
portPort. This parameter is optional. If it is not specified, the default port will be used.

Response example

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

Response Parameters

NameDescription
requestIdA unique request identifier
resultA flag indicating whether the request was successful

See also

Last Updated: