简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2021-08-14

请求URL:

  • ws://xx.com

请求方式:

  • websocket

请求头:

参数名 是否必须 类型 说明

请求参数:

参数名 是否必须 类型 说明
link_type string ws
module string unionchat
device_type string 设备类型【app=,pc=PC端,h5=移动端,desktop=桌面端】
action string close
token string 登录凭证
type string 1
to_uid string 发给谁
content string 1=主动结束会话,2=定时关闭会话

返回示例:

正确时返回:

{
    action: "close"
    data: {
        content: "1"
    }
    msg: "发送成功"
    status: 200
}

{
    action: "close"
    data: {
        content: "2"
    }
    msg: "发送成功"
    status: 200
}

错误时返回:

{}

返回参数说明:

参数名 类型 说明
content string

备注:

文档更新时间: 2021-10-18 14:19   作者:admin