1.0.3 • Published 2 years ago

ml-meeting-process v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Ml Meeting Process

Win UI SDK IPC message JS SDK

Quick Getting started

const { MeetingProcess } = require("ml-meeting-process")

const meeting = new MeetingProcess("./Meeting.exe")

meeting.start(
    "create --server=http://xxxx.xx --token=xxx --nick=xxx --ipc".split(" ")
)

const result = await meeting.get("v1/meeting/window_rect")
// 如果 state.code 不为 0 则表示请求失败了
if (result.state.code) {
    console.warn(result.action, result.state.message)
}

const fn = (action) => {
    console.log(action)
}

// 订阅/取消订阅所有的 notify action
meeting.addListener(fn)
meeting.removeListener(fn)

// 订阅/取消订阅特定的  notify action
meeting.on("v1/meeting/button_action", fn)
meeting.remove("v1/meeting/button_action", fn)
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago