getConnected

TrueConf7/5/26About 2 min

getConnected

Description

Retrieve information about the server and the status of the connection to it

void getConnected()

Response example

{
    "method": "getConnected",
    "requestId" : "1",
    "state": 2,
    "serverInfo": {
        "server": "192.168.0.103",
        "service": false,
        "port": 4307,
        "domain": "some.server.net"
    },
    "result": true
}

Response Parameters

NameDescription
stateConnection status:
• 0 - TrueConf VideoSDK is not connected to the server
• 1 - TrueConf VideoSDK is trying to connect to the server
• 2 - TrueConf VideoSDK is connected to the server
serverInfoInformation about the server to which TrueConf VideoSDK is connected to or is trying to connect. If TrueConf VideoSDK is not connected to the server and is not trying to connect, this information will not be available.
serverIP or domain name of the server to which TrueConf VideoSDK is connected. If TrueConf VideoSDK is not connected and is not trying to connect, this information will not be included
serviceConnection type:
• true - connection to TrueConf Online cloud service
• false - connection to TrueConf Server
portServer port
domainServer domain
requestIdA unique request identifier
resultA flag indicating whether the request was successful

See also

Last Updated: