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-channel-test

v1.0.6

Published

channelService

Downloads

1

Readme

[TOC]

Hummer Channel Service js-sdk

https://github.com/cherishman2005/hummer-js-sdk-api/

FAQ

动态

[2020-07-20] hummer-channel 1.0.6

【重要】域名从web-ap-service.sunclouds.com更新为web-ap-service.jocloud.com

项目需要停用web-ap-service.sunclouds.com。必须更新新的js-sdk,新域名为web-ap-service.jocloud.com

[2019-12-11] 提供hummer-channel.js 1.0.5版本

接口未改动:(I)js-sdk内部心跳超时优化;(II)js-sdk内部可靠组播优化;

[2019-12-02] 提供hummer-channel.js 1.0.4版本

接口未改动,js-sdk内部优化

[2019-11-29] 提供hummer-channel-1.0.3.js版本

调整接口onNotifyJoinChannel和onNotifyLeaveChannel接口

进出频道回调改为聚合多个用户通知:

(1)onNotifyJoinChannel({channelId: string, uid: string})

改为

onNotifyJoinChannel({channelId: string, uids: string[]})

(2)onNotifyLeaveChannel({channelId: string, uid: string})

改为

onNotifyLeaveChannel({channelId: string, uids: string[]})

[2019-11-19] 提供hummer-channel-1.0.2.js版本

接口未改动,内部优化

[2019-11-13] 提供hummer-channel-1.0.1.js版本

接口未改动,串行操作内部优化

[2019-11-05] 提供hummer-channel-1.0.1.js版本

接口未改动,js-sdk内部优化

[2019-10-30] 提供hummer-channel-1.0.0.js版本

主要支持功能:

(1)P2P 可靠,非可靠消息;
(2)组播 可靠,非可靠消息;
(3)频道用户上下行通知;
(4)用户属性变更通知;
(5)单个用户查询在线状态;
(6)与SignalService兼容互通;

hummer-channel js-sdk安装配置

(1)npm包

npm install hummer-channel

import Hummer from 'humer-channel'

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

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

使用js-sdk的业务部署在后端服务器。

调试示例demo

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

channel-demo配置

【注】js_sdk带上版本号发布(如“1.0.2”)。

nginx.conf

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