{"_id":"bilibili-live-danmaku","_rev":"27-7afd692ec6be31390ea6f377758985c8","name":"bilibili-live-danmaku","dist-tags":{"alpha":"0.7.0-alpha.5","latest":"0.7.16"},"versions":{"0.7.0-alpha.0":{"name":"bilibili-live-danmaku","version":"0.7.0-alpha.0","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0-alpha.0","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"1f9e4810e8f0a5c51181b16376219bb457b562ff","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0-alpha.0.tgz","fileCount":18,"integrity":"sha512-oW291Unx84tnb6GKhtJ42whsbTH3Fc/RUci9DUUc9us9ldWOPM+2UiS/7UyAVd3INj1wv3WJdBm5xFvX/mufxw==","signatures":[{"sig":"MEYCIQCC+vZiSQ+UBjLUTGCxEcYEB0lXLeay2wqbP5dyxSvprwIhANjXoaK1+HpN+7rtHVTt9QY7Ckb3HJkkBCkhZ8kBEWK4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":242932},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","browser":"browser.js","gitHead":"067323973503f4096765909a7108f45e455973f7","scripts":{"tsc":"tsc -b","test":"npm run clear; npm run unit","unit":"nyc mocha --reporter=landing -r ts-node/register test/test.ts","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","mocha":"^10.2.0","rimraf":"^6.0.1","ts-node":"^10.3.0","typescript":"^5.8.2","@types/chai":"^4.2.8","@types/pako":"^2.0.0","@types/mocha":"^10.0.1"},"peerDependencies":{"pako":"^2.0.4"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0-alpha.0_1743318443557_0.10566857942788732","host":"s3://npm-registry-packages-npm-production"}},"0.7.0-alpha.1":{"name":"bilibili-live-danmaku","version":"0.7.0-alpha.1","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0-alpha.1","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"9cffd7f4c58f7d787888438a157c36bfe41e55fb","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0-alpha.1.tgz","fileCount":28,"integrity":"sha512-eNn4+bp1BZS9kt0q/ETBvE/RKnXmnXEHxcc0nZLXsWN3IWzoBnmMlnFESlF9PCA3dVvnjLuaUXhhQM7DYkigTg==","signatures":[{"sig":"MEUCIDusLk4e2FpwlEfgV55xi4aJ8n3XdfgGTTQ8EVcZu4V8AiEA83T4SyPtSO92Whs8b0VryGiFhPPVglWZpV4PQtAtCbw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":263862},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"ac3da2c3126589fd4778eb0a5e346ad6346d08be","scripts":{"tsc":"tsc -b","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"pako":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.19.3","rimraf":"^6.0.1","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0-alpha.1_1743691073304_0.8559201331318211","host":"s3://npm-registry-packages-npm-production"}},"0.7.0-alpha.2":{"name":"bilibili-live-danmaku","version":"0.7.0-alpha.2","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0-alpha.2","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"626c4497e902340366eaa8e2d78666ba3b96c8ef","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0-alpha.2.tgz","fileCount":30,"integrity":"sha512-ftEaMdEK6viFf3e+/qPBH2WP0x9UI1QuDQJLs2fqtk/stXxtCBJsegI4IPZsOeYCnUNncg1odmf+ZombjCtzIw==","signatures":[{"sig":"MEQCIEzVSixzlD4uJ4m6aR+hiZ/2IBlRh3xbzsivTeO57lDeAiAnKQjwDpIvPLR3KWxhJO/vBBet8ZNyEcJJzXZ7Oj8X8w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":266808},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"70aad5a7bc262ae5662e76a5fc18b43ef5d28375","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"pako":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.19.3","rimraf":"^6.0.1","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0-alpha.2_1743764854848_0.8665869598506755","host":"s3://npm-registry-packages-npm-production"}},"0.7.0-alpha.3":{"name":"bilibili-live-danmaku","version":"0.7.0-alpha.3","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0-alpha.3","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"3d54a9c9ca01c6f70cdcb8d8266a98f9c72553e0","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0-alpha.3.tgz","fileCount":30,"integrity":"sha512-5xU5Aln97mraCz4M9+yaNdushF5DPtZRxTTm5OpQQ+fn7kxONf6CN+cTXhD1/9hl8nRzg8w7RbRRKr0fL1Yr1g==","signatures":[{"sig":"MEUCIE+ROzsG9oA3asbhOobvYigy1CO4x2uJUnv5HbV5uMx7AiEAkBkUagweYACYnuyHuXR8zI3c39SHmxpAnyTb/PPl+SA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":266415},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"268501ac07db3d79c740828060631e2d2ae1b38b","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"pako":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.19.3","rimraf":"^6.0.1","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0-alpha.3_1743766872883_0.6720328650970944","host":"s3://npm-registry-packages-npm-production"}},"0.7.0-alpha.4":{"name":"bilibili-live-danmaku","version":"0.7.0-alpha.4","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0-alpha.4","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"a67fc77b3b83e226005f6f88de1720407141a272","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0-alpha.4.tgz","fileCount":30,"integrity":"sha512-G8HAan9iOAurbzCnhMMrflbMJxMzwDKR6VdspkC6KM9Abxy9/tHZpwzHFO24vzF8G0/nEzP0SZ+Vrcy13TKWOg==","signatures":[{"sig":"MEQCIBl/ga9CAiFcxJSWnwP4aSKWE5ewuCA6vvukGzUzC4b/AiB5k0fapqyZLQmG04ejlmpLRQukG1rpPXeNGjdqe+SK+g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":266467},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"876d69b10283ccccb765220ab1ce9fb07f31edd8","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"pako":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.19.3","rimraf":"^6.0.1","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0-alpha.4_1743768292275_0.2736885644125573","host":"s3://npm-registry-packages-npm-production"}},"0.7.0-alpha.5":{"name":"bilibili-live-danmaku","version":"0.7.0-alpha.5","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0-alpha.5","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"8d27fec4077dd2dc6c0b6f42bec0b890caa0b277","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0-alpha.5.tgz","fileCount":30,"integrity":"sha512-hY0uBo5957wxOA39yLju009VZOfVY4IQ27/iZea5GkBw4iZKLewL30/6OeVPrjPINi3ptslw7D9+lmJVbwKIFA==","signatures":[{"sig":"MEQCID9I4vEeisoOh9kzHhYeUN6lqqOctOS/XH9CVmbLGrIHAiBZSE8WrCE3d/NSmmEEdKYfRlErF7gvKkmVPIRGpBJP6g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":267319},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"c92a7bce1c0fe94df7bf699e2e9f1569f95fc64d","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"pako":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.19.3","rimraf":"^6.0.1","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0-alpha.5_1743930492572_0.06867057524366071","host":"s3://npm-registry-packages-npm-production"}},"0.7.0-alpha.6":{"name":"bilibili-live-danmaku","version":"0.7.0-alpha.6","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0-alpha.6","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"a48a97137c04884011f70b4632eb8ccdd8137c48","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0-alpha.6.tgz","fileCount":30,"integrity":"sha512-qRY5TRPnZU+m6RUx0xzI3knqTvmu7g3faAqHa7iHx1VuZUw+hJMMwWnct3xN1RGTOMK/hD2wrAJn+ugp8xl6Pw==","signatures":[{"sig":"MEQCIGIZU/LtzC33kO+T5/wO/uopZk4VQ7lHrNeYVzyTHDioAiB+gC9gzhi9JWpA184wUtSLmWSiC6DvXFHiv91N+67W7Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":267322},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"95a793b3182d7f28b42f916a1c428f8317c4805b","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"pako":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","rimraf":"^6.0.1","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0-alpha.6_1744116139123_0.774083423957163","host":"s3://npm-registry-packages-npm-production"}},"0.7.0-beta.1":{"name":"bilibili-live-danmaku","version":"0.7.0-beta.1","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0-beta.1","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"56ca0971b40e56b88a0c119d986331ee4f8f8b06","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0-beta.1.tgz","fileCount":28,"integrity":"sha512-gCiyVEgGgkrkMOpdQpCHyu2bIOlBp6o3WjyDqxdQpj274eYChRdS+reOoRuuhjT+kS+vOEExsqduBCjjinzSAw==","signatures":[{"sig":"MEUCIFx4C9UHea/epUXnRAMSZswqkrYpxuz0xSwFwKz9mld0AiEA6/27t21IQjjhi/jmHUdwQ2CBeUm8HWDAlKMPq4zOF3c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":263864},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"d0a177f4b7a9d744f460f3d420bf7f1555b6ca30","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","rimraf":"^6.0.1","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0-beta.1_1749817734711_0.6412552093106707","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"bilibili-live-danmaku","version":"0.7.0","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.0","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"d8cb5c8413595bf4f82f08f0cb8286a20c26f96c","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.0.tgz","fileCount":35,"integrity":"sha512-I5+2O1TiH8FIT+oqNE40jhqdhFltkwtuaFSQ9oSs6+pqq+l5cGAgpefivH5Bb/PV+VVUkjqYA/LItDzFRobNGA==","signatures":[{"sig":"MEUCIQDx+7IO9HtRHoVmVQV3AT0FnMeJbp+qdXIbBKSlWYTPcQIgMh62LBf0PbUTeg0vEV2W7Vo84J6ClaQYhJsVltYaYp0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":281038},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"6c8f200e9548fb373fc47bde201ecabf36f04c75","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.0_1749883899433_0.033735548523868175","host":"s3://npm-registry-packages-npm-production"}},"0.7.1":{"name":"bilibili-live-danmaku","version":"0.7.1","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.1","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"69967253a4c03bf0d98b97367f1df0ea50d29e55","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.1.tgz","fileCount":33,"integrity":"sha512-FbgDdOKGGG1O9G4vPaUiFykcAcyTWdYTbubcua3TGo+QRLasDVE673DBG9m0ukIjIiEjWQpg8bav4M0WkIwNPg==","signatures":[{"sig":"MEUCIQCrOIDI4F4Am15Z6lkn8VMSjnWnTpzLdTuQL7r9f+FaRwIgEURAYsv6Z/sZG9KB3yn1geiLeKztZm7J9AqR4fuakik=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":279455},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"47f4b95faf82601fc9dc20b450950e84861b8cc7","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.1_1749884814908_0.8050969741517455","host":"s3://npm-registry-packages-npm-production"}},"0.7.2":{"name":"bilibili-live-danmaku","version":"0.7.2","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.2","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"5927ce9420db9f01a78b88c1686015bc507d4d15","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.2.tgz","fileCount":31,"integrity":"sha512-qqOs0Ig2vpMXlj69pQzDypy9gJxpasnlnodmelMMXcC1fAK2vUdF7guo7NMXFpUO1EZ5yOf+HoumFosoK2FOJQ==","signatures":[{"sig":"MEUCIQDmDox7wRDAH+AcJtPLd50Wzfn2z1E0BH0Ug9N8T9NApAIgDKH2rKh4Z2dCjG5ZeJMLzSH/qnPcEI+SLTvFMx5JMJ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":274029},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"e9541e91d16a00a821f96bef9a97f0d6360baedc","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.2_1749887495930_0.9011865935666619","host":"s3://npm-registry-packages-npm-production"}},"0.7.3":{"name":"bilibili-live-danmaku","version":"0.7.3","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.3","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"fb1d49728e8df6b78f1c60da59c15559fd859200","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.3.tgz","fileCount":31,"integrity":"sha512-NPLgJ0y898bMN/x7ReqOXf5HZMqx4hY/H0qCbdkGo47pJpqmw7m4bTMmyPFJ6UDv7wRjH1EhnASn3cHTa6r7BQ==","signatures":[{"sig":"MEUCIF3ZZ5G/x7r6PGc2I1vGwFQQNqi95g1j8RJLTanu1rItAiEAnUlRLYgnR+nJi2itsGDqXJ4Jfyedc0ddQ6/T5DH6T4Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":273287},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"927d3e6cb418a3d9186728e03abfd81828ae748c","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.3_1749894487695_0.29844251455761794","host":"s3://npm-registry-packages-npm-production"}},"0.7.4":{"name":"bilibili-live-danmaku","version":"0.7.4","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.4","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"eb5b72ad58fc49a0175753257c40f65abbc53490","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.4.tgz","fileCount":31,"integrity":"sha512-n4ZqMee6fcdkHfE3dmpKEZCe72gGF+VyZrm0bWQvoaV3+tkDNyFcqTFPM/7KxlEWTYVZogCm2n7WeY93vNL9+A==","signatures":[{"sig":"MEUCIAqUjfjFtNIZ9dLaq28h9xnLe6va8gValTGp6WxbO1NTAiEAnfwVvsox9rCrhcB0bFv5ktcEDgXbTZlT6u/bLrWO83g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":273451},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"8543fc31483fc5887d44d2ac68b3ab847f8f65b9","scripts":{"tsc":"tsc -b","demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && npm run tsc && tsc-alias","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.4_1750070554515_0.6637953984924372","host":"s3://npm-registry-packages-npm-production"}},"0.7.5":{"name":"bilibili-live-danmaku","version":"0.7.5","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.5","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"0f973db32f5a12c4a388740dd1b77b6fe6474cef","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.5.tgz","fileCount":39,"integrity":"sha512-jSelnAwILps/fZT1PyDR8Q10lBQOe27eFOl642SJY6vUmlIY2nwqgdNgUAgAutkdrQHvUX2z8x4GlqYivjqPFg==","signatures":[{"sig":"MEYCIQDW609/c6ydhw592LBPuudTDbFwFTn2999dcxxP+2E7TAIhAK5G9EMf48WSRLS1tFUpSlZczdwkohDNeL2AqM298s6p","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":309637},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"76be53227871adaa55536ce3d2578d0e37c016ec","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.5_1752565783252_0.33551586776910636","host":"s3://npm-registry-packages-npm-production"}},"0.7.6":{"name":"bilibili-live-danmaku","version":"0.7.6","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.6","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"1ddf077b119e8839fbe0a70b1a7d19092d31d373","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.6.tgz","fileCount":39,"integrity":"sha512-abw1PPize6HigSfQmxjRZSajswqWFb0X43F136hTdaV5MH+vTNN0wLA3DnFHtOXkE32/N6gjLTA800foopfpuw==","signatures":[{"sig":"MEQCIHtHye0ilPbbea7+g43tlRW/iKhcQuf8sol6hjS3xSCHAiAyL/YQJiPP6OmQSPUVVen7VqUX/5+zzL7UqOU2Z6pZ4A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":309574},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"a9b49619c232b6eae01f6f797a4658320ca4cfe7","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.6_1752567233288_0.21331866186335824","host":"s3://npm-registry-packages-npm-production"}},"0.7.7":{"name":"bilibili-live-danmaku","version":"0.7.7","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.7","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"0ce78c864c98eb77f9a855039c116366d7b65422","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.7.tgz","fileCount":39,"integrity":"sha512-9eSK9bYT2p5+SO0Su3wixbY84EaGXWGMNh6WOoKv0C+cPcsFvo5UgjkoA8ZLG9XXCMiq9MwMYgmyFuo+6ULvIw==","signatures":[{"sig":"MEUCIQC/JTO21VvJtPxJFi2iLtZO9OPs3I6ZXoGMWarFgrhP9wIgUOgW+4OK3nm++cOski/JT4AGSZflx+OypwRKEItDzpU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":315544},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"b0d0187d37db1d29b3468a1005d0e0c5a7d7e37e","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.7_1756107500297_0.4985877457622072","host":"s3://npm-registry-packages-npm-production"}},"0.7.8":{"name":"bilibili-live-danmaku","version":"0.7.8","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.8","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"ce209261e743aeb0cb39bb12f77ca7188dfc0c66","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.8.tgz","fileCount":39,"integrity":"sha512-H77ttbx5aFe3ngWAEDxTXwm4T1bZKi8RuC52VQsYdWIRTQjh9twGeIzMyoOFtC/DRgRTmUe8i2wEfXYiKhVOJA==","signatures":[{"sig":"MEQCIHUY+vKNkabcRwDRbPZ6Yajpyyi6RuDZ1tTqvJr4HP1OAiAslZZJlm+4Ub8WhGbIYEE+SgJv47bLrrGPw6UX0LjHCg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":315570},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"ad37ddff0536e35b9097c56079d48ebff0df4d52","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.8_1756107822866_0.9656510715783859","host":"s3://npm-registry-packages-npm-production"}},"0.7.9":{"name":"bilibili-live-danmaku","version":"0.7.9","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.9","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"8fa4147e3c047bcb06539b8148a246ae684b55f4","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.9.tgz","fileCount":39,"integrity":"sha512-IfE1mIo5qsYmVRkiNQIsLUM01AXS59B3aAJi05umwq5tEj5WPdJIr+wPdvBFMOfDEYwl0Tk1mF0YuCCvuQZDbw==","signatures":[{"sig":"MEYCIQDjkaC1K7RpqKJDZcBMTLbcv5lCgKT1Y2ykj2bHLcv07AIhAMjhCAwGJ96cZ4u9LSj0yeRTKwuB7lTD5HxPh1BgZLtE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":315596},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"fa65dc122e8610b1fac0e8c5322571de2dd876b1","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.9_1756107910774_0.7980271543967044","host":"s3://npm-registry-packages-npm-production"}},"0.7.10":{"name":"bilibili-live-danmaku","version":"0.7.10","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.10","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"99b888e8abcc2745e76cb73bd4f7475e13685551","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.10.tgz","fileCount":45,"integrity":"sha512-4IbEiQhBSLxRyyx253udGuYKC+h++Ocpe6tzypNz+i2Mbc5ctAp0+pKwG5IzsUsPqBz+HbW+HaAfAGZWKTmQ9A==","signatures":[{"sig":"MEUCIFUkvFs2X81Bv1TwhdcHuqomSURPP3s/gwdxui/VLWxlAiEA4kKC3Hf7MPExZ96Mizb/tsADhRO5Xl9j3pCPz/PSnvU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":321345},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"afce032d348031b920b4ee4c4e2c3c81eea0d31c","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","proto":"pbjs -t static-module -w es6 --force-number -o ./src/proto/index.js -p ./protos ./protos/**/*.proto && pbts -o ./src/proto/index.d.ts ./src/proto/index.js","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","protobufjs":"^7.5.4","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0","protobufjs-cli":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.10_1756311524108_0.023375554103372886","host":"s3://npm-registry-packages-npm-production"}},"0.7.11":{"name":"bilibili-live-danmaku","version":"0.7.11","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.11","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"f268c0302de3431896efa7eae3791efc75c426a6","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.11.tgz","fileCount":43,"integrity":"sha512-pIb3xyWAnsU7RPfWz1/Ls8MmSffIk5jHGEH7PF8otB12pNw772GwdSn/Ay2tCvYbB8ONtR1HuP5xBUYzb16I0A==","signatures":[{"sig":"MEUCIHqiXWY09207d1tkaJlik6qHesHA9r+Fo+QHIVGatC1vAiEAn7P7L4R5lALjTCATKdFBhzrz1GTrekslLWWbcXPzaS4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1038118},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"9e72bee22a9b307387c249169f511cdd9504fdb6","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && npx cpy ./**/*.js ./**/*.d.ts ../dist/ --cwd=./src && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","proto":"pbjs -t static-module -w es6 --force-number -o ./src/proto/index.js -p ./protos ./protos/**/*.proto && pbts -o ./src/proto/index.d.ts ./src/proto/index.js","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","protobufjs":"^7.5.4","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","cpy-cli":"^6.0.0","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0","protobufjs-cli":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.11_1756314597634_0.38986383526962665","host":"s3://npm-registry-packages-npm-production"}},"0.7.12":{"name":"bilibili-live-danmaku","version":"0.7.12","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.12","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"b3f786588878644deca24f1280149c8da21d2e30","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.12.tgz","fileCount":43,"integrity":"sha512-Vb121Lk22xZjZYHkcwHi/GK/IbCqWmr7CCE34Utlwnszn5Y9o+4s6ecye4dWSYI1HsnpMxaIWQ55+VkPoFi2Og==","signatures":[{"sig":"MEYCIQC5NFfQzzC1EHLiuxYjZMVPFT8qyLRkqCVpdKN3ULZKYAIhAOFp4LRpl9/lrnbbrAOryf6bOVVfGrTe4AwDBazlHt6l","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1015606},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"36d780e52ac7346c2dabd7f14de03d4143439a65","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && npx cpy ./**/*.js ./**/*.d.ts ../dist/ --cwd=./src && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","proto":"pbjs -t static-module -w es6 -o ./src/proto/index.js -p ./protos ./protos/**/*.proto && pbts -o ./src/proto/index.d.ts ./src/proto/index.js","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","protobufjs":"^7.5.4","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","cpy-cli":"^6.0.0","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0","protobufjs-cli":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.12_1756315770918_0.179156799781796","host":"s3://npm-registry-packages-npm-production"}},"0.7.13":{"name":"bilibili-live-danmaku","version":"0.7.13","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.13","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"4f5d91eb403f93ec4e5fe9baae7951cab3b61c54","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.13.tgz","fileCount":43,"integrity":"sha512-yejmlFSN8H+2oCVBnj6Ia7Q2nhKvu2RBbXgKeARKrg6Fps7+WMTcZcnFQVbkPp8CO8GXWNXdcF1jYHGGHVlQzw==","signatures":[{"sig":"MEUCIQCh2r/XMOwWQ7VJc9pWKOH9xG3B3RptMjukBnR6UahJbAIgKF2qup14WIJtvm6F8kurSHRVFGW6E3KnA8uWRZ2/hPc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1015609},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"609d1da0ebd1db652bff0cecb50070f84f283c3e","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && npx cpy ./**/*.js ./**/*.d.ts ../dist/ --cwd=./src && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","proto":"pbjs -t static-module -w es6 -o ./src/proto/index.js -p ./protos ./protos/**/*.proto && pbts -o ./src/proto/index.d.ts ./src/proto/index.js","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","protobufjs":"^7.5.4","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","cpy-cli":"^6.0.0","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0","protobufjs-cli":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.13_1756316755797_0.9251968779940578","host":"s3://npm-registry-packages-npm-production"}},"0.7.14":{"name":"bilibili-live-danmaku","version":"0.7.14","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.14","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"568b9398267cb1b3854b7b974948f6741131f86d","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.14.tgz","fileCount":44,"integrity":"sha512-Qnqqm6ou00JAmMTbiTbqR8KgUV7oEIWROHo7luUOn/PdwKD5bOKmSJ/epx2SQbB2WBbXZU6w73w/CjklfKa1RA==","signatures":[{"sig":"MEQCIEX+C4QlwFClDFHJ+HbPFj3GyXCeb2eY+qqD/fcEnYCEAiAmShMF8cKHtlSjmsLcIoxxYnWV50ZO4VVUw7VBvQzsHw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1094476},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"bb85bf307e3bbc1801e8338ff3a3dd59d2eb841e","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && npx cpy ./**/*.js ./**/*.d.ts ../dist/ --cwd=./src && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","proto":"pbjs -t static-module -w es6 -o ./src/proto/index.js -p ./protos ./protos/**/*.proto && pbts -o ./src/proto/index.d.ts ./src/proto/index.js && tsx ./scripts/proto-after.ts","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","protobufjs":"^7.5.4","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","cpy-cli":"^6.0.0","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0","protobufjs-cli":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.14_1756344052415_0.699555501860581","host":"s3://npm-registry-packages-npm-production"}},"0.7.15":{"name":"bilibili-live-danmaku","version":"0.7.15","keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","_id":"bilibili-live-danmaku@0.7.15","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"dist":{"shasum":"62327c0c46fb6e157cf079ca2b4e56c453ecc926","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.15.tgz","fileCount":44,"integrity":"sha512-S+LJqyRPXySsLq6J1gTdoQUJEofjCbfLGXb/77xN6D+DoASffe2T+UNMQ8gyBT7eYFEDR39+7aBAH021QQ+6gw==","signatures":[{"sig":"MEUCIQDVMhZd+goyJozOgBtjweQucJ2rbobFX+UpaaplLuLxMwIgVAZ76DN3t65cyk28Levo0eEWsbNj9dgmaAflwKctFxA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1094529},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"19d8053bdab844a965a9ee8f17a3a22c303a171c","scripts":{"demo":"tsx ./demo/index.ts","test":"npm run clear; npm run unit","build":"npm run clear && tsc -b && npx cpy ./**/*.js ./**/*.d.ts ../dist/ --cwd=./src && tsc-alias","check":"tsc -noEmit","clear":"rimraf ./dist","proto":"pbjs -t static-module -w es6 -o ./src/proto/index.js -p ./protos ./protos/**/*.proto && pbts -o ./src/proto/index.d.ts ./src/proto/index.js && tsx ./scripts/proto-after.ts","prepack":"npm run build","postpack":"npm run clear"},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"repository":{"url":"git+https://github.com/Minteea/bilibili-live-danmaku.git","type":"git"},"_npmVersion":"10.9.2","description":"Bilibili Live WebSocket API","directories":{},"_nodeVersion":"22.14.0","dependencies":{"md5":"^2.3.0","pako":"^2.1.0","protobufjs":"^7.5.4","@floating-live/cookies":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","dotenv":"^16.5.0","rimraf":"^6.0.1","cpy-cli":"^6.0.0","tsc-alias":"^1.8.16","@types/md5":"^2.3.5","typescript":"^5.8.2","@types/pako":"^2.0.0","protobufjs-cli":"^1.1.3"},"_npmOperationalInternal":{"tmp":"tmp/bilibili-live-danmaku_0.7.15_1771095569775_0.6789792861062374","host":"s3://npm-registry-packages-npm-production"}},"0.7.16":{"name":"bilibili-live-danmaku","version":"0.7.16","description":"Bilibili Live WebSocket API","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"proto":"pbjs -t static-module -w es6 -o ./src/proto/index.js -p ./protos ./protos/**/*.proto && pbts -o ./src/proto/index.d.ts ./src/proto/index.js && tsx ./scripts/proto-after.ts","test":"npm run clear; npm run unit","clear":"rimraf ./dist","check":"tsc -noEmit","build":"npm run clear && tsc -b && npx cpy ./**/*.js ./**/*.d.ts ../dist/ --cwd=./src && tsc-alias","demo":"tsx ./demo/index.ts","prepack":"npm run build","postpack":"npm run clear"},"repository":{"type":"git","url":"git+https://github.com/Minteea/bilibili-live-danmaku.git"},"keywords":["bilibili","api","websocket","live","ws"],"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","devDependencies":{"@types/md5":"^2.3.5","@types/pako":"^2.0.0","cpy-cli":"^6.0.0","dotenv":"^16.5.0","protobufjs-cli":"^1.1.3","rimraf":"^6.0.1","tsc-alias":"^1.8.16","tsx":"^4.19.3","typescript":"^5.8.2"},"dependencies":{"@floating-live/cookies":"^0.1.0","md5":"^2.3.0","pako":"^2.1.0","protobufjs":"^7.5.4"},"_id":"bilibili-live-danmaku@0.7.16","gitHead":"13745ee16a642b6f763d94fa6e6a13492b79028b","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-xOV1QQBG7Y3TMatxcMEPM588BNhZjRm6btM8KNzLipwEKyetz2VchEl8FKl0bSoT8vsUgatHH09uHUtRvP7FCA==","shasum":"78f218d97a3666d675505e18a226df32f0668ac1","tarball":"https://registry.npmjs.org/bilibili-live-danmaku/-/bilibili-live-danmaku-0.7.16.tgz","fileCount":44,"unpackedSize":1096034,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDvVk3/oAwqrgIqz/rC+XCzIRaxAjM1n8a1SMKVxWToTAiEA/RdXAglT4cR5hQTseDJqYACLImvlfMWxVEVPwwKx9f4="}]},"_npmUser":{"name":"minteea","email":"minteea@qq.com"},"directories":{},"maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bilibili-live-danmaku_0.7.16_1779338995621_0.7455220432881811"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-30T07:07:23.557Z","modified":"2026-05-21T04:49:55.906Z","1.0.1":"2022-04-11T08:45:51.742Z","0.7.0-alpha.0":"2025-03-30T07:07:23.782Z","0.7.0-alpha.1":"2025-04-03T14:37:53.487Z","0.7.0-alpha.2":"2025-04-04T11:07:35.124Z","0.7.0-alpha.3":"2025-04-04T11:41:13.054Z","0.7.0-alpha.4":"2025-04-04T12:04:52.462Z","0.7.0-alpha.5":"2025-04-06T09:08:12.823Z","0.7.0-alpha.6":"2025-04-08T12:42:19.336Z","0.7.0-beta.1":"2025-06-13T12:28:54.886Z","0.7.0":"2025-06-14T06:51:39.596Z","0.7.1":"2025-06-14T07:06:55.103Z","0.7.2":"2025-06-14T07:51:36.108Z","0.7.3":"2025-06-14T09:48:07.876Z","0.7.4":"2025-06-16T10:42:34.685Z","0.7.5":"2025-07-15T07:49:43.449Z","0.7.6":"2025-07-15T08:13:53.499Z","0.7.7":"2025-08-25T07:38:20.469Z","0.7.8":"2025-08-25T07:43:43.092Z","0.7.9":"2025-08-25T07:45:10.968Z","0.7.10":"2025-08-27T16:18:44.303Z","0.7.11":"2025-08-27T17:09:57.877Z","0.7.12":"2025-08-27T17:29:31.165Z","0.7.13":"2025-08-27T17:45:56.009Z","0.7.14":"2025-08-28T01:20:52.667Z","0.7.15":"2026-02-14T18:59:29.982Z","0.7.16":"2026-05-21T04:49:55.790Z"},"bugs":{"url":"https://github.com/Minteea/bilibili-live-danmaku/issues"},"author":{"name":"Minteea","email":"minteea@qq.com"},"license":"MIT","homepage":"https://github.com/Minteea/bilibili-live-danmaku#readme","keywords":["bilibili","api","websocket","live","ws"],"repository":{"type":"git","url":"git+https://github.com/Minteea/bilibili-live-danmaku.git"},"description":"Bilibili Live WebSocket API","maintainers":[{"name":"minteea","email":"minteea@qq.com"}],"readme":"# bilibili-live-danmaku\n\n[![npm](https://img.shields.io/npm/v/bilibili-live-danmaku.svg)](https://www.npmjs.com/package/bilibili-live-danmaku)\n\nBilibili 直播 WebSocket API，支持浏览器和服务端 JS 运行环境\n\n> 本项目基于[github:simon300000/bilibili-live-ws](https://github.com/simon300000/bilibili-live-ws)的项目进行改进，使用符合现有 Web 标准的 API 和 ES 规范进行代码重构，满足不同 JS 环境下的可移植性\n\n## API\n\n```javascript\nimport { LiveWS, KeepLiveWS } from \"bilibili-live-danmaku\";\nconst live = new LiveWS(roomid);\n// 或\nconst live = new KeepLiveWS(roomid);\n```\n\n举个栗子:\n\n```javascript\nconst live = new LiveWS(14275133);\n\nlive.addEventListener(\"open\", () => console.log(\"Connection is established\"));\n// Connection is established\nlive.addEventListener(\"CONNECT_SUCCESS\", () => {\n  live.addEventListener(\"HEARTBEAT_REPLY\", ({ data }) => console.log(data));\n  // 74185\n});\n```\n\n## Class: LiveWS / KeepLiveWS\n\n### new LiveWS()\n\n```typescript\n  new LiveWS (roomid [, { address, protover, key, authBody, uid, buvid }])\n```\n\n- `roomid` 房间号\n\n  比如 https://live.bilibili.com/14327465 中的 `14327465`\n\n- `address` 可选, WebSocket 连接的地址\n\n  默认 `'wss://broadcastlv.chat.bilibili.com/sub'`\n\n- `protover` 可选 (1, 2, 3)\n\n  默认 `2`\n\n  - 1 (见 [#17](https://github.com/simon300000/bilibili-live-ws/issues/17))\n  - 2 (zlib.inflate)\n  - 3 (brotliDecompress)\n\n- `uid` 可选, WS 握手的 uid [#397](https://github.com/simon300000/bilibili-live-ws/issues/397)\n\n- `key` 可选, WS 握手的 Token [#397](https://github.com/simon300000/bilibili-live-ws/issues/397)\n\n- `buvid` 可选, WS 握手的 Token [#397](https://github.com/simon300000/bilibili-live-ws/issues/397)\n\n- `authBody` 可选, 可以和 <https://open-live.bilibili.com/document/> 配合使用, 会覆盖掉 `protover` `roomid` `key` `uid` `buvid`. 如果是 `object` 会按照握手包编码，如果是 `string`/`Uint8Array` 会直接发送\n\n#### live.addEventListener('open')\n\nWebSocket 连接上了\n\n#### live.addEventListener('CONNECT_SUCCESS')\n\n成功登入房间\n\n#### live.addEventListener('HEARTBEAT_REPLY')\n\n收到服务器心跳包，会在 30 秒之后自动发送心跳包。\n\n#### live.addEventListener('MESSAGE', ({data}) => ...)\n\n- `data` 收到信息/弹幕/广播等\n\n  data 的例子: (我 simon3000 送了一个辣条)\n\n  ```javascript\n  {\n    cmd: 'SEND_GIFT',\n    data: {\n      giftName: '辣条',\n      num: 1,\n      uname: 'simon3000',\n      face: 'http://i1.hdslb.com/bfs/face/c26b9f670b10599ad105e2a7fea4b5f21c0f0bcf.jpg',\n      guard_level: 0,\n      rcost: 2318827,\n      uid: 3499295,\n      top_list: [],\n      timestamp: 1555690631,\n      giftId: 1,\n      giftType: 0,\n      action: '喂食',\n      super: 0,\n      super_gift_num: 0,\n      price: 100,\n      rnd: '1555690616',\n      newMedal: 0,\n      newTitle: 0,\n      medal: [],\n      title: '',\n      beatId: '0',\n      biz_source: 'live',\n      metadata: '',\n      remain: 6,\n      gold: 0,\n      silver: 0,\n      eventScore: 0,\n      eventNum: 0,\n      smalltv_msg: [],\n      specialGift: null,\n      notice_msg: [],\n      capsule: null,\n      addFollow: 0,\n      effect_block: 1,\n      coin_type: 'silver',\n      total_coin: 100,\n      effect: 0,\n      tag_image: '',\n      user_count: 0\n    }\n  }\n  ```\n\n#### live.addEventListener(cmd, ({data}) => ...)\n\n用法如上，只不过只会收到特定 cmd 的 Event。\n\n比如 `live.on('DANMU_MSG')` 只会收到弹幕 Event，一个弹幕 Event 的 Data 例子如下: (我 simon3000 发了个`233`)\n\n```javascript\n{\n  cmd: 'DANMU_MSG',\n  info: [\n    [0, 1, 25, 16777215, 1555692037, 1555690616, 0, 'c5c630b1', 0, 0, 0],\n    '233',\n    [3499295, 'simon3000', 0, 0, 0, 10000, 1, ''],\n    [5, '財布', '神楽めあOfficial', 12235923, 5805790, ''],\n    [11, 0, 6406234, '>50000'],\n    ['title-58-1', 'title-58-1'],\n    0,\n    0,\n    null,\n    { ts: 1555692037, ct: '2277D56A' }\n  ]\n}\n```\n\n#### live.addEventListener('close')\n\n连接关闭事件\n\n#### live.addEventListener('error', (e) => ...)\n\n连接 error 事件，连接同时也会关闭\n\n#### live.heartbeat()\n\n无视 30 秒时间，直接发送一个心跳包。\n\n如果连接正常，会收到来自服务器的心跳包，也就是 `live.on('heartbeat')`，可以用于更新人气值。\n\n#### live.close()\n\n关闭 WebSocket 连接。\n\n#### live.on('message')\n\nWebSocket 收到的 MessageEvent 对象，包含原始 Blob 数据（不推荐直接使用）\n\n#### live.send(buffer)\n\n使用 WebSocket 发送信息\n\n### getLiveConfig(roomid)\n\n选一个 cdn，Resolve host, address 和 key, 可以直接放进(Keep)LiveWS 设置\n\n```typescript\nimport { getLiveConfig } from \"bilibili-live-danmaku\";\n\ngetLiveConfig(roomid);\n// Return\nPromise<{\n  key: string;\n  host: string;\n  address: string;\n}>;\n```\n\n### getRoomid(short)\n\n通过短房间号获取长房间号\n\n```typescript\nimport { getRoomid } from \"bilibili-live-danmaku\";\n\ngetRoomid(255);\n// Return Promise<number>: 48743\n```\n","readmeFilename":"README.md"}