系统消息websocket协议
<h5>简要描述</h5>
<ul>
<li>使用了websocket协议,</li>
</ul>
<h5>连接URL</h5>
<ul>
<li><code>ws://194.41.36.225:9090/otc-api/messageSocket/{{userId}}/{{token}}</code></li>
</ul>
<h5>接受消息</h5>
<p>{
"content": "content", //内容
"id": 13, //id
"isRead": 0, // 0未读 1已读
"msgType": "ORDER_1_EVENT", //消息类型
"time": 1663942064121, //消息时间
"title": "title", //标题
"uid": 10040, //用户ID
"data":"T20932082",//订单ID
"unreadNum": 7 //消息未读数
}</p>
<p>事件消息:
msgType : "ORDER_1_EVENT" -> "确认付款事件",确认付款后,对方会收到消息,请求付款方式接口
msgType :"ORDER_2_EVENT" -> "确认收款事件",确认收款后,对方会受到消息, 请求订单详情接口更新订单状态同时确认收款按钮置为可点击状态,并关闭倒计时</p>
<h5>定时发送心跳消息</h5>
<pre><code>{
&quot;content&quot;: &quot;ping&quot;,
&quot;type&quot;: &quot;ping&quot;
}</code></pre>
<p>返回</p>
<pre><code>{
&quot;content&quot;: &quot;pong&quot;,
&quot;type&quot;: &quot;pong&quot;
}</code></pre>