npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

imsdk3-client

v3.0.2

Published

UM IMSDK v3.0

Downloads

6

Readme

联信网格嵌入式即时通讯IMSDK3

1. 概况

联信网格嵌入式即时通讯IMSDK3是一款纯JavaScript原生开发的带UI界面的即时通讯系统,一行代码嵌入第三方应用中,即可拥有即时通讯能力。

2. 快速开始

在页面中引入umgrid.IMSDK3.js (移动端引入mobile.IMSDK3.js)

<script type="text/javascript"src="umgrid.IMSDK3.js"></script>

3. 使用说明

3.1  初始化

 首先,需要初始化即时通讯系统,需要传入第三方应用中,登录者的帐号、密码等信息。

umclient.init({
  No: '用户ID', 
  name: '用户名字', 
  Password: '用户密码',
  FG_OrgNo: '组织ID',
  FG_OrgName: '组织名字',
  FG_DeptNo: '部门ID',
  FG_DeptName: '部门名字',
  isShowVideo: true // 是否启用音视频通话
}, '红泡标记的class或者id名')

示例

umclient.init({
  No: '15500000001', 
  name: '用户1', 
  Password: '123456',
  FG_OrgNo: 000155,
  FG_OrgName: '联信网格',
  FG_DeptNo: 000155002,
  FG_DeptName: '行政人力资源部',
  isShowVideo: true
}, '#iconIM')

3.2  打开消息面板

umclient.OpenMsgPanel()

3.3  发送消息进行对话

umclient.OpenChat({
  FG_OrgNo: '组织ID',
  No: '用户ID',
  toNo: '对方ID',
  toName: '对方名字',
  msg: '消息内容',
  issendmsg: true, // 是否发送消息
  backfill: true // 是否回填消息内容,但不发送
})

示例

umclient.OpenChat({
  FG_OrgNo: 000155,
  No: '15500000001',
  toNo: '15500000002',
  toName: '用户2',
  msg: '消息内容'
})

3.4  发送群聊消息进行对话

umclient.CreateGroupTalk({
  orgid: '组织ID', 
  umid: '用户ID',
  roomid: '群ID', 
  roomname: '群名称', 
  phonelist: [{userid: '群成员ID', username: '群成员名字'}], 
  msg: '消息内容', 
  isDeleteEtcUsers: false, // 是否删除除phonelist中的其他成员
  issendmsg: true, // 是否发送消息
  backfill: true // 是否回填消息内容,但不发送
})

示例

umclient.CreateGroupTalk({
  orgid: 000155, 
  umid: '15500000001',
  roomid: '18798', 
  roomname: '群008', 
  phonelist: [{
              userid: '111',
              username: '我是111'
            }, {
              userid: '222',
              username: '我是222'
            }, {
              userid: '333',
              username: '我是333'
            }], 
  msg: '消息内容'
})

4. 打包后IMSDK3目录说明

readme.md 本说明文本文件 um.js 即时通讯响应式调用js,自适应适配PC或移动端屏幕 demo.html 本地自适应调用文件示例,需用到um.js和mobile/pc目录下文件

4.1 cdn目录

系统所需的资源文件全部从服务器进行拉取,PC端和移动端所需的资源文件不同!

4.2 pc目录

该目录是pc端本地引入资源文件的示例

4.3 mobile目录

该目录是移动端本地引入资源文件的示例

4.4 示例

PC端在线示例:https://sdk.umnet.cn/imsdk2/pc.html

移动端在线示例:https://sdk.umnet.cn/imsdk2/mobile.html

响应式在线示例:https://sdk.umnet.cn/imsdk2/demo_cdn.html

联系我们

青岛联合汇信科技有限公司

技术支持:0532-80668101

联系邮箱:[email protected]

在线联系:https://open.umnet.cn/um/link?u=6000339828

公司官网:https://www.umnet.cn