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

hummer-chatroom

v1.1.3

Published

hummer chatroom js-sdk for shopline

Downloads

12

Readme

修改点

[2020-07-17]hummer-chatroom js-sdk1.1.3更新发布(针对shopline)

对外接口不变:
(1)域名sunclouds.com改为jocloud.com

[2020-06-03]hummer-chatroom js-sdk1.1.2更新发布(针对shopline)

对外接口不变:
(1)sdk内部优化;

[2020-02-13]hummer-chatroom js-sdk1.1.1更新发布

对外接口不变:
(1)sdk内部优化;

[2020-02-07]hummer-chatroom js-sdk1.1.0更新发布(针对shopline需求的测试联调版本)

对外接口不变:
(1)解决utf8编码emoji表情对ios不兼容的问题;
(2)新增chatroom全球化功能支持;
(3)sdk内部优化;

[2020-01-20]hummer-chatroom js-sdk1.0.9更新发布(针对shopline需求的测试联调版本)

对外接口不变:
(1)sdk内部优化;

[2020-01-17]hummer-chatroom js-sdk1.0.8更新发布(针对shopline需求的测试联调版本)

对外接口不变:
(1)主要新增功能:支持CN, idn,ind, are等区域的功能;
(2)sdk内部优化;

[2020-01-16]hummer-chatroom js-sdk1.0.7更新发布(针对shopline需求的测试联调版本)

主要新增功能:

公屏功能:

(1)公屏实名登录流程;—— 支持全球账户登录(仅内部使用,外部使用第三方登录token)
(2)未登录者,可以观看公屏。—— 支持匿名流程;(匿名时 uid='0')
(3)公屏支持实时发言,频道内用户都能看到公屏信息;—— (非可靠通道消息)

service_sdk功能:(server to client)—— 中台定制功能,对外服务时不提供

(1)subscribeBcGroup/unSubscribeBcGroup订阅/退订广播组
(2)onRecvBroadcastMessage/onRecvUnicastMessage 接收service通道广播/单播

全球账户登录下的chatroom-demo

https://github.com/cherishman2005/vue-chatroom/tree/master/chatroom

udb登录时credit转otp的功能,还没有灰度,调试时需要配置hosts。(具体咨询罗文江)

【注】

(1)uid, groupType, groupId均为uint64bit数据,因为js对64bit传递会出现精度丢失。—— 这里采用 64bit对应的字符串与业务交互。
(2)service_sdk与chatroom js-sdk共用一个websocket实例。

[2019-12-26]hummer-chatroom js-sdk1.0.6更新发布

接口不变,增加部分可靠单播和可靠组播功能
以下功能及通知修改为可靠信令通道:
•聊天室单播
•聊天室广播
•聊天室成员变更通知
•聊天室成员人数变更通知

[2019-12-19]hummer-chatroom-1.0.5.js 更新发布

接口不变,备份非可靠组播版本

[2019-11-19]hummer-chatroom-1.0.4.js 更新发布

优化接口,达到提供商用标准

[2019-11-13]hummer-chatroom-1.0.4.js 更新发布

(1)增加用户属性变更功能

[2019-09-30]hummer-chatroom-1.0.4.js 更新发布

(1)将chatroom的connect/login回调调整到hummer(core)模块来处理。
(2)函数名命名调整:函数名第一个字母从以前的大写字母调整为小些字母

[2019-09-02]h5service-hummer-sdk-1.0.3.js 更新发布

uid升级为 64bit整型对应的字符串;

[2019-08-25]h5service-hummer-sdk-1.0.2.js 更新发布

调整 3:

refreshToken老接口没有用json: hummer.refreshToken(uid, token) 调整为json,使用更加方便:

hummer.refreshToken({uid, token})

动态

[2019-08-25]h5service-hummer-sdk-1.0.2.js 更新发布 [2019-08-22] h5service-hummer-sdk-1.0.1.js 正式发布

js-sdk引用方式

npm路径: https://www.npmjs.com/package/hummer-chatroom

(1)npm包引用 npm install hummer-chatroom

import Hummer from 'hummer-chatroom'

(2)采用cdn(http)方式引用聊天室js_sdk

<script charset="utf-8" src="https://***.***.com/hummer-chatroom-x.x.x.js"></script>

chatroom-demo(VUE框架)

demo功能: 一对一聊天,一对多聊天;

https://github.com/cherishman2005/vue-room

chatroom-demo配置

nginx.conf

	location /room {
		try_files $uri $uri/ /room/index.html;
		default_type text/html;
		alias /home/zhangbiwu/vue_projects/room/dist;
	}