simon300000 / bilibili-live-ws

Bilibili live WebSocket/tcp API
MIT License
316 stars 31 forks source link

上舰长会报错 #4

Closed xcstream closed 4 years ago

xcstream commented 4 years ago

舰长消息变了 上舰长会报错

TypeError: Cannot read property 'includes' of undefined at LiveWS. ( /bilibili-live-ws/src/index.js:38:33) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:93:5)

simon300000 commented 4 years ago

你好,谢谢反馈!

这个问题应该已经在 https://github.com/simon300000/bilibili-live-ws/commit/180ef0e4a56e9e829a38ab2d2d01b326627e39eb 修复,请试试看最新的1.1.6版本

simon300000 commented 4 years ago

新出的2.0.0版本支持TCP连接,欢迎尝试 (

xcstream commented 4 years ago

好的呢

simon300000 commented 4 years ago

wua 问题修复了吗?

我把msg.cmd作为cmd的第二候选项了,导致出问题的似乎是这样一个包,cmd被放进msg了

image
xcstream commented 4 years ago

暂时没有问题, 继续观察中

simon300000 commented 4 years ago

wua 这个问题大概修好了