0.0.6 • Published 9 months ago

douyin-live v0.0.6

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

Douyin-live

NPM Version JavaScript Stage

关于项目

抖音直播间

如何使用

  • 安装模块
npm install douyin-live -S
  • 开箱即用
const { EventEmitter } = require('events');
const { DouyinLiveWeb,DouyinLiveApp }  = require('douyin-live');

const main = async ()=>{
    let emitter = new EventEmitter();
    emitter.on("message", (data)=>{
        console.log(data); 
    })
    let room = new DouyinLive(emitter);
    let options =  getLiveOptions(roomId);
    let {url,headers} = options;
    await room.connect(url,headers);
}

main();

接口文档

消息事件

TODO

  • 完善proto协议
0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago