# 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
Name | Description |
---|---|
state | Connection 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 |
serverInfo | Information 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. |
server | IP 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 |
service | Connection type: • true - connection to TrueConf Online cloud service • false - connection to TrueConf Server |
port | Server port |
domain | Server domain |
requestId | A unique request identifier |
result | A flag indicating whether the request was successful |
See also