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

yim-wxmini-sdk

v1.0.0

Published

yim-wxmin-sdk(yideb im wechat miniprogram sdk)是IM消息针对微信小程序的js开发工具包,基于websocket与im服务器连接,用于im消息相关功能。

Downloads

3

Readme

yim-wxmini-sdk

yim-wxmin-sdk(yideb im wechat miniprogram sdk)是IM消息针对微信小程序的js开发工具包,基于websocket与im服务器连接,用于im消息相关功能。

说明

im消息可能会在多个项目使用,在与im服务端交互的逻辑上,各个前端项目基本是一致的,为了统一管理和升级,避免人工手动拷贝的方式传递代码,不便于以后版本升级,bug修复等,因此,这部分代码形成sdk库,作为以后im的基础环境库,形成明医众禾的前端im库的实现之一。

安装

本地调试安装

本地调试安装是直接将该sdk源码映射到使用项目当中,以后调试过程中同时调试sdk的代码逻辑。

git clone https://git.ylk360.com/hospital/yideb-im-sdk-dev.git

cd yideb-im-sdk-dev/yim-wxmini-sdk

# 创建npm本地link全局映射
npm link

# 微信小程序现在已支持npm安装第三方库,具体参见[npm支持](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html)
# 进入微信小程序项目目录,执行链接
npm link yim-wxmini-sdk

发布安装

发布安装是指sdk稳定后,作为npm可用的库发布在npm.js开发库里(注意:发布的是编译压缩后的代码),使用项目使用npm install的方式安装在项目中使用。

# 进入使用sdk的项目目录,执行链接
npm install --save yim-wxmini-sdk

接口

yim-wxmini-sdk库向外导出了yim对象。yim包含了整个im交互的所有接口。具体参见源码: yim