mjs

mjsoul

majsoul 雀魂通信client客户端

Showing:

Popularity

Downloads/wk

17

GitHub Stars

33

Maintenance

Last Commit

1mo ago

Contributors

1

Package

Dependencies

2

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

mjsoul

雀魂通信客户端
完成了雀魂底层protobuf数据的解析,转换为可读的json数据

Install with npm:

$ npm i mjsoul

Example:

const MJSoul = require("mjsoul")
const mjsoul = new MJSoul()

let login = async()=>{

    //登陆
    let data = await mjsoul.sendAsync(
        "login",
        {account: "account", password: mjsoul.hash("password"), client_version_string: "web-0.9.205"}
    )
    console.log(data)

    //获取好友列表
    data = await mjsoul.sendAsync("fetchFriendList")
    console.log(data)
}

//绑定事件
mjsoul.on("NotifyAccountLogout", login)

mjsoul.open(login)

详细使用方法请参阅以下资料:

雀魂协议
雀魂API
使用说明

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100