WuKongIM Docs

解析 Gateway 地址

编辑此页报告文档问题
GET/route

返回已配置的公网或内网地址;节点别名按 node_id、nodeId、nodeID 顺序读取。

查询参数

node_id?integer

Preferred node selector. A specified value must be a configured positive uint64.

格式uint64
范围1 <= value
nodeId?integer
已弃用

Legacy alias read only when node_id is absent.

格式uint64
范围1 <= value
nodeID?integer
已弃用

Legacy alias read after node_id and nodeId.

格式uint64
范围1 <= value
intranet?integer

Any parseable non-zero integer selects intranet addresses; invalid text behaves as 0.

默认0

响应主体

application/json

application/json

application/json

{  "tcp_addr": "string",  "ws_addr": "string",  "wss_addr": "string"}