{"_id":"@asanrom/hls-websocket-cdn","_rev":"8-ab59d2099ddd8bf215e68eb1f7a38c00","name":"@asanrom/hls-websocket-cdn","dist-tags":{"latest":"2.0.1"},"versions":{"0.0.1":{"name":"@asanrom/hls-websocket-cdn","version":"0.0.1","author":{"url":"https://github.com/AgustinSRG","name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com"},"license":"MIT","_id":"@asanrom/hls-websocket-cdn@0.0.1","maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"dist":{"shasum":"ba3444866beb8a489924b880c14421393adb2205","tarball":"https://registry.npmjs.org/@asanrom/hls-websocket-cdn/-/hls-websocket-cdn-0.0.1.tgz","fileCount":14,"integrity":"sha512-UjmQZ4M2vAurMuqO1qh6sIJM1cemmbgb8Fd3Ow2sadfrJQ3H4p5+M4VqYI8x1sy0OkYYLsYmdDakS1qSXSM9dQ==","signatures":[{"sig":"MEYCIQDP9IqhWNl6IcNnY2YHpDDWw1QvbFasAoNoNO2PKEuVcgIhAJ7E3u3c+LaFvOlh0ZlUf4ehZjQu+vLa1VTsWWwlSJ75","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28164},"main":"dist/index.js","engines":{"node":">= 20.0.0"},"gitHead":"27917a85a3a2ac297eab0be19a0be28450cce30e","scripts":{"lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -b -r ts-node/register 'tests/**/*.ts'","build":"rimraf dist && npm run compile","gendoc":"typedoc --out docs ./src","compile":"tsc --pretty --declaration && webpack","prebuild":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git","type":"git"},"_npmVersion":"8.5.5","description":"Javascript client for HLS Websocket CDN.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"hls.js":"1.5.17"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.2.0","dotenv":"16.4.5","eslint":"8.36.0","rimraf":"4.4.0","ts-node":"10.9.1","typedoc":"0.23.27","webpack":"5.96.1","@types/ws":"8.5.12","ts-loader":"9.4.2","typescript":"4.9.5","@types/node":"18.15.3","webpack-cli":"5.0.1","@types/mocha":"10.0.1","@typescript-eslint/parser":"5.55.0","@typescript-eslint/eslint-plugin":"5.55.0"},"_npmOperationalInternal":{"tmp":"tmp/hls-websocket-cdn_0.0.1_1732370940329_0.7945007096029932","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@asanrom/hls-websocket-cdn","version":"0.0.2","author":{"url":"https://github.com/AgustinSRG","name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com"},"license":"MIT","_id":"@asanrom/hls-websocket-cdn@0.0.2","maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"dist":{"shasum":"a13ef6c23e7f39b1e6053d857165ca2055998eba","tarball":"https://registry.npmjs.org/@asanrom/hls-websocket-cdn/-/hls-websocket-cdn-0.0.2.tgz","fileCount":14,"integrity":"sha512-Qdmhyq+ItLLYNGQZX48AMPy3tgDIxMpR77iVnfN3HohfTqFk8mpE6zTWTQw6C4KHC8BkPF155pjn6uIgKfim6w==","signatures":[{"sig":"MEYCIQCKu4i9ywbDVrehq8Vk/D9emhy66fnx8cWhtyFHaYYANwIhAMmm1Ftm+TzV1ipigpBiXVeYO+NY19J1QHBe5wqEO3TY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29607},"main":"dist/index.js","engines":{"node":">= 20.0.0"},"gitHead":"0086682286208e0e89697662850e3baef6293321","scripts":{"lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -b -r ts-node/register 'tests/**/*.ts'","build":"rimraf dist && npm run compile","gendoc":"typedoc --out docs ./src","compile":"tsc --pretty --declaration && webpack","prebuild":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git","type":"git"},"_npmVersion":"8.5.5","description":"Javascript client for HLS Websocket CDN.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"hls.js":"1.5.17"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.2.0","dotenv":"16.4.5","eslint":"8.36.0","rimraf":"4.4.0","ts-node":"10.9.1","typedoc":"0.23.27","webpack":"5.96.1","@types/ws":"8.5.12","ts-loader":"9.4.2","typescript":"4.9.5","@types/node":"18.15.3","webpack-cli":"5.0.1","@types/mocha":"10.0.1","@typescript-eslint/parser":"5.55.0","@typescript-eslint/eslint-plugin":"5.55.0"},"_npmOperationalInternal":{"tmp":"tmp/hls-websocket-cdn_0.0.2_1732373965391_0.22802569058052624","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@asanrom/hls-websocket-cdn","version":"0.0.3","author":{"url":"https://github.com/AgustinSRG","name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com"},"license":"MIT","_id":"@asanrom/hls-websocket-cdn@0.0.3","maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"dist":{"shasum":"306efa40d3d01aec8661cdb0199a40417464e722","tarball":"https://registry.npmjs.org/@asanrom/hls-websocket-cdn/-/hls-websocket-cdn-0.0.3.tgz","fileCount":14,"integrity":"sha512-jFx2NgkDA5L1cpQEEuQWsTPB8lAdOkbq2T0e49qGRTb6xayXxotzNTJ+WiSVa9Y5sjI9e4GJJiBVu0TkhC447w==","signatures":[{"sig":"MEUCIQDaWMn5Fsu9ZHwx4EKtMrPz8PALk8/NV8Q+Ll2AbxaWbQIgAfv3Yeg99cytM169su2SRGEKXZ7+C9ETrgjSCDbwXYU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29944},"main":"dist/index.js","engines":{"node":">= 20.0.0"},"gitHead":"0086682286208e0e89697662850e3baef6293321","scripts":{"lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -b -r ts-node/register 'tests/**/*.ts'","build":"rimraf dist && npm run compile","gendoc":"typedoc --out docs ./src","compile":"tsc --pretty --declaration && webpack","prebuild":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git","type":"git"},"_npmVersion":"8.5.5","description":"Javascript client for HLS Websocket CDN.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"hls.js":"1.5.17"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.2.0","dotenv":"16.4.5","eslint":"8.36.0","rimraf":"4.4.0","ts-node":"10.9.1","typedoc":"0.23.27","webpack":"5.96.1","@types/ws":"8.5.12","ts-loader":"9.4.2","typescript":"4.9.5","@types/node":"18.15.3","webpack-cli":"5.0.1","@types/mocha":"10.0.1","@typescript-eslint/parser":"5.55.0","@typescript-eslint/eslint-plugin":"5.55.0"},"_npmOperationalInternal":{"tmp":"tmp/hls-websocket-cdn_0.0.3_1732374810188_0.377942783887111","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@asanrom/hls-websocket-cdn","version":"1.0.0","author":{"url":"https://github.com/AgustinSRG","name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com"},"license":"MIT","_id":"@asanrom/hls-websocket-cdn@1.0.0","maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"dist":{"shasum":"69ba15e6067f6c5104177267ba2dff1551de8a97","tarball":"https://registry.npmjs.org/@asanrom/hls-websocket-cdn/-/hls-websocket-cdn-1.0.0.tgz","fileCount":14,"integrity":"sha512-qipF8jhOBp8FziLY8YQhv2w3laYgsBltJPfWwdP0E+Gcsy9hdKRw6l33qGCArtajxnlM7lGr1IfNmOHasy41EQ==","signatures":[{"sig":"MEUCIQCgJDuup/4Zd8jx4EdrpidfP3TXzLXxyfSFkPRDyriPpwIgfXqTzKw6We9FuE3KhrsBR3H55aXhW89RQPvRWm33e/s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30337},"main":"dist/index.js","engines":{"node":">= 20.0.0"},"gitHead":"dec1739e63cc3931b77a26c1ccd327f9cb8a4957","scripts":{"lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -b -r ts-node/register 'tests/**/*.ts'","build":"rimraf dist && npm run compile","gendoc":"typedoc --out docs ./src","compile":"tsc --pretty --declaration && webpack","prebuild":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git","type":"git"},"_npmVersion":"8.5.5","description":"Javascript client for HLS WebSocket CDN.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"hls.js":"1.5.17"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.2.0","dotenv":"16.4.5","eslint":"8.36.0","rimraf":"4.4.0","ts-node":"10.9.1","typedoc":"0.23.27","webpack":"5.96.1","@types/ws":"8.5.12","ts-loader":"9.4.2","typescript":"4.9.5","@types/node":"18.15.3","webpack-cli":"5.0.1","@types/mocha":"10.0.1","@typescript-eslint/parser":"5.55.0","@typescript-eslint/eslint-plugin":"5.55.0"},"_npmOperationalInternal":{"tmp":"tmp/hls-websocket-cdn_1.0.0_1733481078365_0.9923498353208631","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@asanrom/hls-websocket-cdn","version":"1.1.0","author":{"url":"https://github.com/AgustinSRG","name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com"},"license":"MIT","_id":"@asanrom/hls-websocket-cdn@1.1.0","maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"dist":{"shasum":"97379204ad137d5880086bfe1630a0e307f9edbe","tarball":"https://registry.npmjs.org/@asanrom/hls-websocket-cdn/-/hls-websocket-cdn-1.1.0.tgz","fileCount":14,"integrity":"sha512-iTKZRV4OjDn+pDKmSa8Zp5ULziWCscEcoUcr4zFwtqIG/AV42BfiwX/E6bVN6EVlEUKe7MK3mix0ZoXgQsU+jg==","signatures":[{"sig":"MEQCIDytd6T7iJhwoExMw6cMLRCzAKzB6nyyFLUTPSVsXCm1AiBzho9XMKfBknMl08npQftwxb9Kd1iE2yM67rbAGmD7Og==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30411},"main":"dist/index.js","engines":{"node":">= 20.0.0"},"gitHead":"437f3cffd0bb74fefc508abdaf5c32261c71629c","scripts":{"lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -b -r ts-node/register 'tests/**/*.ts'","build":"rimraf dist && npm run compile","gendoc":"typedoc --out docs ./src","compile":"tsc --pretty --declaration && webpack","prebuild":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git","type":"git"},"_npmVersion":"8.5.5","description":"Javascript client for HLS WebSocket CDN.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"hls.js":"1.5.17"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"10.2.0","dotenv":"16.4.5","eslint":"8.36.0","rimraf":"4.4.0","ts-node":"10.9.1","typedoc":"0.23.27","webpack":"5.96.1","@types/ws":"8.5.12","ts-loader":"9.4.2","typescript":"4.9.5","@types/node":"18.15.3","webpack-cli":"5.0.1","@types/mocha":"10.0.1","@typescript-eslint/parser":"5.55.0","@typescript-eslint/eslint-plugin":"5.55.0"},"_npmOperationalInternal":{"tmp":"tmp/hls-websocket-cdn_1.1.0_1733481810239_0.8155173004859408","host":"s3://npm-registry-packages"}},"2.0.0-beta.1":{"name":"@asanrom/hls-websocket-cdn","version":"2.0.0-beta.1","author":{"url":"https://github.com/AgustinSRG","name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com"},"license":"MIT","_id":"@asanrom/hls-websocket-cdn@2.0.0-beta.1","maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"dist":{"shasum":"50bb02ab6faf616b98bf7ca87418e2167c75256e","tarball":"https://registry.npmjs.org/@asanrom/hls-websocket-cdn/-/hls-websocket-cdn-2.0.0-beta.1.tgz","fileCount":18,"integrity":"sha512-VHR5+xgimpnLQtbGFXO5bmEhCFDaOGq8v1OL8tpWXUbOmTmP4TSONDv9YF4bdaNO1PxEkKTpYHWksTtECawycA==","signatures":[{"sig":"MEUCIHtX/pbjV6FChyicgIxM0fjLYphjlupHL4G7719hloeTAiEA4eY9hwEYQ4drd9jzKf9L2hidir1xVP369OZtPQwRG+8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59770},"main":"dist/index.js","engines":{"node":">= 20.0.0"},"gitHead":"6fe948e6ebb6a8d6dca422c01737a8900b7dfcb0","scripts":{"lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -b -r ts-node/register 'tests/**/*.ts'","build":"rimraf dist && npm run compile","gendoc":"typedoc --out docs ./src","compile":"tsc --pretty --declaration && webpack","prebuild":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git","type":"git"},"_npmVersion":"8.5.5","description":"Javascript client for HLS WebSocket CDN.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"mux.js":"6.3.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"11.0.1","dotenv":"16.4.5","eslint":"8.36.0","rimraf":"4.4.0","ts-node":"10.9.1","typedoc":"0.23.27","webpack":"5.96.1","@types/ws":"8.5.12","ts-loader":"9.4.2","typescript":"4.9.5","@types/node":"18.15.3","webpack-cli":"5.0.1","@types/mocha":"10.0.1","@typescript-eslint/parser":"5.55.0","@typescript-eslint/eslint-plugin":"5.55.0"},"_npmOperationalInternal":{"tmp":"tmp/hls-websocket-cdn_2.0.0-beta.1_1733853959925_0.7598509475805006","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@asanrom/hls-websocket-cdn","version":"2.0.0","author":{"url":"https://github.com/AgustinSRG","name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com"},"license":"MIT","_id":"@asanrom/hls-websocket-cdn@2.0.0","maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"dist":{"shasum":"102648839eb2712589a427e6212ff41a039ead90","tarball":"https://registry.npmjs.org/@asanrom/hls-websocket-cdn/-/hls-websocket-cdn-2.0.0.tgz","fileCount":18,"integrity":"sha512-JpnMAaQcLVPBOegmoX1Gi1giNiyI75XEmfQJTvGg2mkXruE6HU7g09hlrVupkHQWCBIxFxW1VGLIc2qB/2qvZw==","signatures":[{"sig":"MEUCIDp+5Raf9eUToCx1SohVi/BxRorNljj/8nf0944X9ttcAiEA16/WvkLDWQv0T28Qw4KMkYMlhUbjvtkxdLMEg6JvRVw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59763},"main":"dist/index.js","engines":{"node":">= 20.0.0"},"gitHead":"6fe948e6ebb6a8d6dca422c01737a8900b7dfcb0","scripts":{"lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -b -r ts-node/register 'tests/**/*.ts'","build":"rimraf dist && npm run compile","gendoc":"typedoc --out docs ./src","compile":"tsc --pretty --declaration && webpack","prebuild":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"pre-commit":["lint"],"repository":{"url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git","type":"git"},"_npmVersion":"8.5.5","description":"Javascript client for HLS WebSocket CDN.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"mux.js":"6.3.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"11.0.1","dotenv":"16.4.5","eslint":"8.36.0","rimraf":"4.4.0","ts-node":"10.9.1","typedoc":"0.23.27","webpack":"5.96.1","@types/ws":"8.5.12","ts-loader":"9.4.2","typescript":"4.9.5","@types/node":"18.15.3","webpack-cli":"5.0.1","@types/mocha":"10.0.1","@typescript-eslint/parser":"5.55.0","@typescript-eslint/eslint-plugin":"5.55.0"},"_npmOperationalInternal":{"tmp":"tmp/hls-websocket-cdn_2.0.0_1733854857360_0.501760186593357","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@asanrom/hls-websocket-cdn","version":"2.0.1","description":"Javascript client for HLS WebSocket CDN.","main":"dist/index.js","typings":"dist/index.d.ts","homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","repository":{"type":"git","url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git"},"scripts":{"prebuild":"npm run lint","compile":"tsc --pretty --declaration && webpack","build":"rimraf dist && npm run compile","lint":"eslint --fix src/**/*.ts","test":"env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -b -r ts-node/register 'tests/**/*.ts'","gendoc":"typedoc --out docs ./src"},"author":{"name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com","url":"https://github.com/AgustinSRG"},"engines":{"node":">= 20.0.0"},"pre-commit":["lint"],"devDependencies":{"@types/mocha":"10.0.1","@types/node":"18.15.3","@types/ws":"8.5.12","@typescript-eslint/eslint-plugin":"5.55.0","@typescript-eslint/parser":"5.55.0","dotenv":"16.4.5","eslint":"8.36.0","mocha":"11.0.1","rimraf":"4.4.0","ts-loader":"9.4.2","ts-node":"10.9.1","typedoc":"0.23.27","typescript":"4.9.5","webpack":"5.96.1","webpack-cli":"5.0.1"},"license":"MIT","dependencies":{"mux.js":"6.3.0"},"gitHead":"192b5356446992401758cde1d87085f0eaddf22b","bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"_id":"@asanrom/hls-websocket-cdn@2.0.1","_nodeVersion":"20.11.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-9ca5fAZN5HGcugnx6VZTD16ocnQFYYdxWvV7zNxN+xeIWTZF6GgDoVggPfpERH+ybvB57aP8gH2rxeeEK0SJRQ==","shasum":"d4abb5cf856623513107f92c70fcdbc741325dcd","tarball":"https://registry.npmjs.org/@asanrom/hls-websocket-cdn/-/hls-websocket-cdn-2.0.1.tgz","fileCount":18,"unpackedSize":59727,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB/mADhqiLP1tStnlc4MhXdagOhQcE6D3eGfMs+MW8vkAiEAlCeXcYfMsC6XM7vDhDBsj2/lzZXcoPZMgjuK3I76McM="}]},"_npmUser":{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"},"directories":{},"maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hls-websocket-cdn_2.0.1_1742643610068_0.5967220777511033"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-23T14:09:00.205Z","modified":"2025-03-22T11:40:10.455Z","0.0.1":"2024-11-23T14:09:00.497Z","0.0.2":"2024-11-23T14:59:25.590Z","0.0.3":"2024-11-23T15:13:30.355Z","1.0.0":"2024-12-06T10:31:18.539Z","1.1.0":"2024-12-06T10:43:30.398Z","2.0.0-beta.1":"2024-12-10T18:06:00.147Z","2.0.0":"2024-12-10T18:20:57.584Z","2.0.1":"2025-03-22T11:40:10.269Z"},"bugs":{"url":"https://github.com/AgustinSRG/hls-websocket-cdn/issues"},"author":{"name":"Agustin San Roman","email":"agustinsanromanguzman@gmail.com","url":"https://github.com/AgustinSRG"},"license":"MIT","homepage":"https://github.com/AgustinSRG/hls-websocket-cdn/client-js","repository":{"type":"git","url":"git+https://github.com/AgustinSRG/hls-websocket-cdn.git"},"description":"Javascript client for HLS WebSocket CDN.","maintainers":[{"name":"asanrom","email":"agustinsanromanguzman@gmail.com"}],"readme":"# HLS WebSocket CDN - Javascript client\n\n[![npm version](https://badge.fury.io/js/%40asanrom%2Fhls-websocket-cdn.svg)](https://www.npmjs.com/package/@asanrom/hls-websocket-cdn)\n\nThis is a JavaScript client for **HLS WebSocket CDN**. You can use it in order to connect to the CDN servers and play the streams from a web browser.\n\n## Installation\n\nIf you are using a npm managed project use:\n\n```\nnpm install @asanrom/hls-websocket-cdn\n```\n\nIf you are using it in the browser, without any bundler, download the minified file from the [Releases](https://github.com/AgustinSRG/hls-websocket-cdn/tags) section and import it to your html:\n\n```html\n<script type=\"text/javascript\" src=\"/path/to/hls-websocket-cdn.js\"></script>\n```\n\nThe browser library exports all artifacts to the window global: `HlsWebSocketCdn`\n\n## Usage\n\nYou need a video element and the connection details (normally given by the backend) to play the stream.\n\nHere is an example:\n\n```html\n<script type=\"text/javascript\" src=\"/path/to/hls-websocket-cdn.js\"></script>\n<video id=\"video\"></video>\n<script>\n    const HlsWebSocket = HlsWebSocketCdn.HlsWebSocket;\n\n    var video = document.getElementById('video');\n    var cdnUrl = \"wss://ws.example.com/\";\n    var cdnStreamId = \"example-stream-id\";\n    var cdnAuth = \"\";\n    var fallbackHlsUrl = \"https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8\";\n\n    // Check if MSE are supported\n    if (HlsWebSocket.isSupported()) {\n        // Create instance of HlsWebSocket\n        var hls = new HlsWebSocket({\n            cdnServerUrl: cdnUrl,\n            streamId: cdnStreamId,\n            authToken: cdnAuth,\n        });\n\n        // Call start() to connect to the server\n        // and start pulling the stream\n        hls.start();\n\n        // Call attachMedia(videoElement) to attach the stream playback to a video element\n        hls.attachMedia(video);\n    } else if (video.canPlayType('application/vnd.apple.mpegurl')){\n        // If MSE are not supported, but native HLS playback is supported\n        // just set the video source to a fallback HLS URL\n        // This is the case for IOS devices\n        video.src = fallbackHlsUrl;\n    }\n</script>\n```\n\n## Documentation\n\n - [Typescript documentation](https://agustinsrg.github.io/hls-websocket-cdn/client-js/docs)\n\n## Build instructions\n\nTo build the code, you need to install [Node.js](https://nodejs.org/en/). Install the latest stable version to avoid bugs.\n\nOnce installed, run the following command to install dependencies:\n\n```sh\nnpm install\n```\n\nRun the following command to build the library:\n\n```sh\nnpm run build\n```\n","readmeFilename":"README.md"}