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 🙏

© 2025 – Pkg Stats / Ryan Hefner

yach.ext.agora

v0.2.1

Published

yach util: agora

Readme

yach.ext.agora

owner

庞豪杰(069132)

安装

npm i yach.ext.agora

init

import * as agoraFn from "yach.ext.agora";
agoraFn.initAgoraSDK();

startCall

agoraFn.startCall;

/**
 * 拨打语音电话
 * @param {Sring} id: 当前会话的id
 * @param {Object} sessionActive: 当前会话的对象
 */
agoraFn.startCall(id, sessionActive);

acceptCall

agoraFn.acceptCall;

/**
 * 接听语音电话
 * @param no param
 */
agoraFn.acceptCall();

joinCall

agoraFn.joinCall;

/**
 * 接听后加入语音电话
 * @param no param
 */
agoraFn.joinCall();

refuseCall

agoraFn.refuseCall;

/**
 * 拒绝语音电话
 * @param no param
 */
agoraFn.refuseCall();

cancelCall

agoraFn.cancelCall;

/**
 * 取消语音电话
 * @param no param
 */
agoraFn.cancelCall();

leaveCall

agoraFn.leaveCall;

/**
 * 取消后离开语音电话
 * @param no param
 */
agoraFn.leaveCall();

sendMessageToPeer

agoraFn.sendMessageToPeer;

/**
 * 主叫挂断电话给被叫端发送点对点消息
 * @param no param
 */
agoraFn.sendMessageToPeer();

channelAudio

agoraFn.channelAudio;

/**
 * 开启/关闭音频
 * @param {Blean} status: true开启|false关闭
 */
agoraFn.channelAudio(status);

closeVoice5

agoraFn.closeVoice5;

/**
 * 关闭通话界面
 * @param no param
 */
agoraFn.closeVoice5();

logoutRtmAndRtc

agoraFn.logoutRtmAndRtc;

/**
 * 退出rtm和rtc
 * @param no param
 */
agoraFn.logoutRtmAndRtc();

uploadRtmAndRtcBpit

agoraFn.uploadRtmAndRtcBpit;

/**
 * 上报数据到elk系统
 * @param {Object}
 * {
 *  module: 'api',//模块
 *  result: obj.code ==200 ? 0 : obj.code,//接口返回的code码
 *  startTime: Date.now(),//请求接口的开始时间
 *  path: 'meeting/create_stream'//接口路由
 * }
 */
agoraFn.uploadRtmAndRtcBpit({
  module: "api",
  result: obj.code == 200 ? 0 : obj.code,
  startTime: Date.now(),
  path: "/meeting/create_stream",
});

version

0.1.5.20210129

  1. 主叫和被叫都改为加入频道后才开始计时

0.1.4.20210111

  1. initAgoraSDK 内部调用时传入参数&增加日志

0.1.3.20201216

  1. 配置文件去除,13 项目调用 agoraFn 中的初始化函数 initAgoraSDK 时传入所需配置

0.1.2.20201126

  1. agora ../../

0.1.1.20201105

  1. 兼容 ios 端 vip 号问题&更新语音电话开始时间处理

0.1.0.20201103

  1. ncu
  2. 环境判断&日志处理

0.0.9.20200912

  1. noticeStream 接口增加 elk 数据上报
  2. 被叫接听瞬间,主叫方挂断问题处理,增加点对点消息

0.0.8.20200903

  1. 接口配置文件修改

0.0.7.20200901

  1. 被叫挂断-主叫再次呼叫问题修复
  2. 30s 后再次呼叫时只呼叫未收到邀请的端

0.0.6.20200831

  1. 视频会议发消息问题修复

0.0.5.20200828

  1. 修复拨通电话立即挂断,然后再次拨打无反应问题

0.0.4.20200826

  1. modify ajax fun

0.0.3.20200821

  1. rtm/rtc fun

0.0.2.20200810

  1. yach.util.agora --> yach.ext.agora

0.0.1.20200720

  1. init project
  2. agora rtc