Comments (3)
走官方平台 /v2/app/start接口会返回一个authBody(JSON字符串),和ws连接地址
const live = new LiveWS(xxx, {
address: '', // 接口返回的ws地址
authBody: {} // 接口返回的authBody 转换成对象一下传进来
})
live.on('msg', (data) => {
// data.cmd === 'LIVE_OPEN_PLATFORM_DM'
console.log(data)
})
from bilibili-live-ws.
开放平台会给一个authBody吧,把那个autoBody放进去就可以
from bilibili-live-ws.
但是我也不确定…有没有问题?
from bilibili-live-ws.
Related Issues (20)
- Uncaught (in promise) TypeError: packs.flatMap is not a function HOT 15
- 请教问题 HOT 2
- 请教一下DANMU的数据结构 HOT 3
- 再问个问题 HOT 2
- 关于 【Could not resolve "pako"】 与 【Dynamic require of "buffer" is not supported】的问题 HOT 11
- live.send()具体可以做什么,怎么使用呢。能更新下文档相关内容吗。 HOT 3
- 报错:KeepLiveTCP is not a constructor HOT 4
- mobileRoomInit(短号解析接口)报404 HOT 10
- 可以直接打包成js文件吗?不通过npm引入 HOT 1
- [Question]获取的数据会自动组成队列吗? HOT 2
- [bug] 有些直播间心跳包只会返回1,并且接收不到数据 HOT 2
- Bug: `Buffer` 未定义 HOT 13
- type为DANMU_MSG的信息里,用户名变成了****,uid和灯牌信息都变成了0 HOT 5
- 弹幕用户名打码功能跟进 HOT 17
- Message structure interface for different events? HOT 2
- 弹幕获取似乎有些问题 HOT 21
- 关于Online 数字始终为1 的问题 HOT 1
- 需要登录能力 HOT 2
- 啊b好像又改了join data了 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bilibili-live-ws.