ws重连

  • ws断开后,该链接绑定的企业微信还在线,可以通过这个接口把在线的企业微信绑定到新的ws链接上,这样就可以继续正常的收到消息,不需要重新登录

参数

参数名 必选 类型 说明
cmd string 请求方法
user_id string 已经登录的,同时绑定的ws已经断开的企业微信

请求参数示例

{
  "cmd":"ReConnect",
  "user_id":"168xxxxxxx",
  "request_key":"",
  "params": {}
}

回调结果示例

{
    "cmd_type":"ReConnect",
    "data":{
        "user_id":"168xxxxxxx",
        "acctid":"Mastxxxxxxx",
        "avatar":"",
        "corp_id":"197xxxxxxx",
        "corp_full_name":"杭州xxxxxxx",
        "corp_short_name":"零xxxxx",
        "job":"技术总监",
        "name":"xxxxx",
        "realname":"xxxxx",
        "sex":1,
        "email":"",
        "mobile":"15xxxxxxx",
        "process_id":2408,
        "client_id":468,
        "ws_key":"fCkYkUuRgBse",
        "login_time":1646909278
    },
    "request_key":"",
    "type":11092,
    "user_id":"168xxxxxxxxxx"
}
Copyright © wkteam.cn 2020 all right reserved,powered by Gitbook该文件修订时间: 2022-08-06 23:28:48

results matching ""

    No results matching ""