A JavaScript/TypeScript library for connecting to Bilibili Live WebSocket and TCP APIs. Version 6.3.1 is the latest stable release. It provides four main classes (LiveWS, LiveTCP, KeepLiveWS, KeepLiveTCP) for real-time room events like danmaku, gifts, and heartbeats. Supports browser environment with experimental browser build. Includes TypeScript type definitions. Features automatic heartbeats, custom auth for Bilibili Open Live platform, and multiple protocol versions (1, 2, 3) for compression.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM import; CommonJS requires destructuring.
ESM import; CommonJS requires destructuring.
Auto-reconnecting WebSocket version.
Connects to a Bilibili live room via WebSocket, listens for open, live, heartbeat, and message events.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.