New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

mjsoul

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjsoul

majsoul client tool

Source
npmnpm
Version
2.1.4
Version published
Weekly downloads
452
-19.29%
Maintainers
1
Weekly downloads
 
Created
Source

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")}
    )
    console.log(data)

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

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

mjsoul.open(login)

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

雀魂协议
雀魂API
使用说明

Keywords

riichi

FAQs

Package last updated on 28 Jul 2020

Related posts