增加开发版本融云
This commit is contained in:
49
public/im.js
Normal file
49
public/im.js
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
/**
|
||||
* Web唐明明
|
||||
* 匆匆数载恍如梦,岁月迢迢华发增。
|
||||
* 碌碌无为枉半生,一朝惊醒万事空。
|
||||
* moduleName: 融云im
|
||||
*/
|
||||
|
||||
import { init, connect } from '@rongcloud/imlib-uni'
|
||||
|
||||
export default {
|
||||
// 初始化im
|
||||
imInit(){
|
||||
|
||||
// init('lmxuhwaglu76d')
|
||||
},
|
||||
// 添加连接状态监听函数
|
||||
addConnectionStatusListener(res){
|
||||
console.log(res)
|
||||
},
|
||||
// 添加日志信息监听函数
|
||||
addLogInfoListener(res) {
|
||||
console.log(res)
|
||||
},
|
||||
// 添加消息撤回监听函数
|
||||
addRecallMessageListener(res) {
|
||||
console.log(res)
|
||||
},
|
||||
// 添加输入状态监听函数
|
||||
addTypingStatusListener(res){
|
||||
console.log(res)
|
||||
},
|
||||
// 添加消息监听函数
|
||||
addReceiveMessageListener(res){
|
||||
console.log(res)
|
||||
},
|
||||
// 添加私聊阅读回执监听函数
|
||||
addReadReceiptReceivedListener(res){
|
||||
console.log(res)
|
||||
},
|
||||
// 添加收到消息已读回执请求监听函数
|
||||
addReceiptRequestListener(res){
|
||||
console.log(res)
|
||||
},
|
||||
// 添加消息回执响应监听函数
|
||||
addReceiptResponseListener(res){
|
||||
console.log(res)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user