🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

im-plugin-vue2-iview

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

im-plugin-vue2-iview

## Project setup ``` pnpm install im-plugin-vue2-iview ```

latest
npmnpm
Version
0.2.3
Version published
Weekly downloads
18
-18.18%
Maintainers
1
Weekly downloads
 
Created
Source

im-plugin-vue2-iview

Project setup

pnpm install im-plugin-vue2-iview

在main.js中引入组件

import imPluginVue2Iview from 'im-plugin-vue2-iview'
Vue.use(imPluginVue2Iview)

在项目中使用

 <im-video :user-id="userId" :token="token" ref="imVideo"></im-video>
  • 先调用服务端接口获取token和userId
  • 调用初始化方法 this.$refs.imVideo.onConnectImServer() 链接服务端
  • 调用语音聊天服务:this.$refs.imVideo.audioOnlyCall('其他用户的id')
  • 调用视频聊天服务:this.$refs.imVideo.videoCall('其他用户的id')

更新日志:

0.1.0:初始化版本
0.1.1:去掉package中无用的依赖信息
0.1.2:增加package中main参数
0.1.3:增加显示的默认头像,去掉无用的测试代码
0.1.4:收到信息也要响铃声
0.2.1:整个项目接口重构,需要和后端组件搭配使用scp-implugin

1.测试写法
2.测试写法

FAQs

Package last updated on 26 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts