You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bilibili-websocket

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bilibili-websocket

bilibili && websocket

0.0.3
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

目前只是web通过websocket链接

请打开控制台,接受弹幕 目前用原生的ws实现,建议使用chrome浏览器

demo地址

特别提醒,尽量进一个比较火的直播房间 (⊙﹏⊙)b 有的很冷清半天看不到一个弹幕

B站直播网址

示例

这个房间稳定有弹幕 7623885

最新更新 => 通过进行nginx代理,通过我的域名转发到bilibili弹幕ws服务上,目前服务到期不再转发,开发者自行配置

导入 npm install -d bilibili-websocket 或者 全局引用 BILIWS window.BILIWS

BILIWS 对外暴露$destroy、$start、$subscribe三个API。

使用方式见example示例

FAQs

Package last updated on 11 Jun 2019

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