Skip to content

Get websocket server information

After the login is successful, the websocket push address is obtained. How do I log in to the websocket push service and view the WebSocket pushConnection entry

API info

Url: /web_api/v1/common/get_websocket_info

Method: GET

Content-Type:x-www-form-urlencoded

Request parameter

None

Response Data (type:object)

fieldtypedesc
websocketAddrstringwebsocket address
websocketPortintegerwebsocket port

Example

Request example

url
http://localhost:8080/web_api/v1/common/get_websocket_info&_t=1698998015041
http://localhost:8080/web_api/v1/common/get_websocket_info&_t=1698998015041

Response example

json
{
  "hdr": {
    "code": 200,
    "message": "success"
  },
  "data": {
    "websocketAddr": "localhost",
    "websocketPort": 8081
  }
}
{
  "hdr": {
    "code": 200,
    "message": "success"
  },
  "data": {
    "websocketAddr": "localhost",
    "websocketPort": 8081
  }
}