The method systemSetCommType() is called by the server hub to execute a communication type change on hub running the Remote Client. If the mode are not supported, this call should return an error.
Function |
systemSetCommType |
Purpose |
Sets communications to [http/socket/proxy]. |
Parameters |
Name |
Type |
Description |
params |
Map |
(Optional) |
|
URL Format |
/system/setCommType/:type |
HTTP Method |
GET - Incoming |
HTTP Parameters |
Name |
Type |
Description |
type |
String |
Communication type. Valid values are: "http", "socket", "proxy" |
|
Return JSON |
Name |
Type |
Return Values |
status |
String |
"success" if the communication type changed, or "error" on failure.
|
|
Note: This should re-trigger a reconnection to the server.