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

matchon-api

v1.0.0

Published

Matchon JavaScript API Core 麦琪JavaScript API

Downloads

1

Readme

麦琪JavaScript API

麦琪JavaScript API由画笔(上海)网络科技有限公司开发,用于Web/H5/React Native等通过Web标准协议和JavaScript语言获取麦琪云对战服务.

麦琪API采用开源的MIT协议.代码托管在Github码云上.

麦琪(MatchOn)云对战平台

麦琪云对战平台由画笔(上海)网络科技有限公司开发和运营, 为网络游戏开发者提供三大服务:

  • 对战对手匹配
  • 游戏消息通讯
  • 键值对管理

游戏开发者不再需要自行开发对手匹配引擎, 消息通讯引擎和键值对管理后台,直接通过麦琪的API,就能立刻获得这些服务.

使用麦琪云对战平台,游戏开发者可以专注于游戏可玩性, 节省开发运营成本,加快开发速度.

进入麦琪(MatchOn)官网了解详细信息.

反馈

欢迎开发者通过Github或者码云提交Issue, 提出您的问题,或者发现的Bug,我们将在第一时间跟进予以解答.

消息引擎 MoEventEmitter

麦琪JavaScript API采用了与Nodejs的消息模式兼容的异步消息驱动的设计,通过继承一个MoEventEmitter对象,获得发布,订阅和取消消息订阅的API.

MatchOn对象继承了MoEventEmitter. 您可以在MatchOn对象上调用所有MoEventEmitter的消息函数,不需要另外再继承或创建MoEventEmitter对象.

MoEventEmitter也托管在Github码云上.

MoEventEmitter来源于Github的EventEmitter开源项目,仅用于MatchOn API. 尽管MoEventEmitter也可以作为通用的JavaScript消息库, 我们建议您使用EventEmitter作为通用目的的JavaScript消息引擎. 这是EventEmitter在Github的链接

依赖

本API继承了MoEventEmitter. 请参见 麦琪API安装, 了解如何加载MoEventEmitter.

文档

请参考麦琪(MatchOn)开发者文档

最小化

您可以直接从这个仓库里获取已经最小化的JavaScript文件.如果您复制了源代码库,也可已在项目目录下使用tools/dist.sh编译.

麦琪API安装

直接在网页中加载

含注释的完整JavaScript

<script src="https://matchon.cn/libs/MoEventEmitter.js"></script>
<script src="https://matchon.cn/libs/matchon-core.js"></script>

最小化的JavaScript

<script src="https://matchon.cn/libs/MoEventEmitter.min.1.1.3.js"></script>
<script src="https://matchon.cn/libs/matchon-core.min.1.0.0.js"></script>

通过NPM

npm install MoEventEmitter --save
npm install MatchOnCore --save

复制

您可以通过Git Clone命令,将这两个库复制到本机上.

Github

git clone git://github.com/matchon-on/MoEventEmitter.git
git clone git://github.com/matchon-on/MatchOn.git

码云

git clone git://git.oschina.net/matchon/MoEventEmitter.git
git clone git://git.oschina.net/matchon/MatchOn.git