Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

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

latest
Source
npmnpm
Version
2.3.0
Version published
Weekly downloads
26
-38.1%
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 06 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts