mirror of
https://gitee.com/farsunset/cim.git
synced 2025-07-27 02:20:32 +08:00
sdk接口更新
This commit is contained in:
parent
a9909a4039
commit
43308baa5f
@ -19,9 +19,9 @@ uniSocket.on('connectioned', function() {
|
|||||||
}, true)
|
}, true)
|
||||||
```
|
```
|
||||||
### 1.2绑定会议房间号
|
### 1.2绑定会议房间号
|
||||||
当socket连接成功回调,然后绑定用户ID
|
当socket连接成功回调,绑定会议房间号Tag
|
||||||
```javascript
|
```javascript
|
||||||
uniSocket.sendBufferTag(tag) // 会议结束删除房间号传null或者空
|
uniSocket.bindRoomTag(tag) // 会议结束删除房间号传null或者空
|
||||||
```
|
```
|
||||||
### 1.3接收消息
|
### 1.3接收消息
|
||||||
```javascript
|
```javascript
|
||||||
|
@ -201,7 +201,7 @@ export default class Socket {
|
|||||||
|
|
||||||
}
|
}
|
||||||
//绑定tag
|
//绑定tag
|
||||||
async sendBufferTag(tag) {
|
async bindRoomTag(tag) {
|
||||||
if (this._connectioned) {
|
if (this._connectioned) {
|
||||||
let body = new proto.com.farsunset.cim.sdk.web.model.SentBody();
|
let body = new proto.com.farsunset.cim.sdk.web.model.SentBody();
|
||||||
if (tag) {
|
if (tag) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user