{"_id":"@apexinfosysindia/js-websocket","_rev":"5-108bbc5d6b6334adf25d02a8351eaf0d","name":"@apexinfosysindia/js-websocket","dist-tags":{"latest":"9.6.3"},"versions":{"9.6.1":{"name":"@apexinfosysindia/js-websocket","version":"9.6.1","author":{"name":"ApexOS"},"license":"Apache-2.0","_id":"@apexinfosysindia/js-websocket@9.6.1","maintainers":[{"name":"apexinfosys","email":"admin@apexinfosys.in"}],"homepage":"https://github.com/apexinfosysindia/js-websocket#readme","bugs":{"url":"https://github.com/apexinfosysindia/js-websocket/issues"},"dist":{"shasum":"0743912fee7fce6c4239c8b72b6c82c25271bc9e","tarball":"https://registry.npmjs.org/@apexinfosysindia/js-websocket/-/js-websocket-9.6.1.tgz","fileCount":34,"integrity":"sha512-hJgBScUZyFCmxnnMfbC3jgR2o2RetRuS4SkzeYKiBzQ/SDy4fn+Z2Dkn1adkuYKbWItziCMuMp57lckzmhe2Uw==","signatures":[{"sig":"MEYCIQCjjuGixFqrts7g1Vgg72FkUDmQC+KWA4sqW7e7a5iW7QIhAKNbN5Lal255Unq4tP33xDjT4k+YvYletBMlmD63erM3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":161307},"main":"dist/haws.umd.js","type":"module","_from":"file:/Users/advait/apex-buildtmp/npm-dist/apexinfosysindia-js-websocket-9.6.1.tgz","types":"dist/index.d.ts","module":"dist/index.js","source":"lib/index.ts","exports":{".":{"import":"./dist/index.js","default":"./dist/haws.umd.js","require":"./dist/haws.cjs"},"./dist/*":"./dist/*","./haws.cjs":"./dist/haws.cjs","./haws.umd.js":"./dist/haws.umd.js"},"scripts":{"test":"tsc && mocha --loader=ts-node/esm","build":"tsc && rollup -c","watch":"tsc --watch","format":"prettier --write .","prepublishOnly":"rm -rf dist && npm run build && npm test"},"_npmUser":{"name":"apexinfosys","email":"admin@apexinfosys.in"},"_resolved":"/Users/advait/apex-buildtmp/npm-dist/apexinfosysindia-js-websocket-9.6.1.tgz","_integrity":"sha512-hJgBScUZyFCmxnnMfbC3jgR2o2RetRuS4SkzeYKiBzQ/SDy4fn+Z2Dkn1adkuYKbWItziCMuMp57lckzmhe2Uw==","deprecated":"Superseded by 9.6.3 (renamed public API; see repo releases)","repository":{"url":"git+https://github.com/apexinfosysindia/js-websocket.git","type":"git"},"_npmVersion":"10.2.4","description":"ApexOS websocket client","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.1.0","assert":"^2.0.0","rollup":"^4.3.0","ts-node":"^10.9.2","prettier":"^3.0.0","typescript":"^5.2.2","@types/mocha":"^10.0.9","@types/assert":"^1.4.7"},"_npmOperationalInternal":{"tmp":"tmp/js-websocket_9.6.1_1784572608675_0.7830820320074381","host":"s3://npm-registry-packages-npm-production"}},"9.6.2":{"name":"@apexinfosysindia/js-websocket","version":"9.6.2","author":{"name":"ApexOS"},"license":"Apache-2.0","_id":"@apexinfosysindia/js-websocket@9.6.2","maintainers":[{"name":"apexinfosys","email":"admin@apexinfosys.in"}],"homepage":"https://github.com/apexinfosysindia/js-websocket#readme","bugs":{"url":"https://github.com/apexinfosysindia/js-websocket/issues"},"dist":{"shasum":"8c59685fd091fa529d2ad201a901e82a159dbed1","tarball":"https://registry.npmjs.org/@apexinfosysindia/js-websocket/-/js-websocket-9.6.2.tgz","fileCount":34,"integrity":"sha512-neo2kicBhorQwLT0gVmN35D7QCnaENTzULcqZ3zIR87eSLLz2oasYmHEXq0V/XATWekaB8uH3EulofzrtKUglw==","signatures":[{"sig":"MEUCIQC0OmoJk5CkkCwjClvynWG4pETVfCmkOe+9JbMK5ZoTPAIgdmPqPdSifpo3DxVSMrIfBKz7ShZ9SJsghde4K5fSrPo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":161096},"main":"dist/apexws.umd.js","type":"module","_from":"file:/Users/advait/apex-buildtmp/npm-dist/apexinfosysindia-js-websocket-9.6.2.tgz","types":"dist/index.d.ts","module":"dist/index.js","source":"lib/index.ts","exports":{".":{"import":"./dist/index.js","default":"./dist/apexws.umd.js","require":"./dist/apexws.cjs"},"./dist/*":"./dist/*","./apexws.cjs":"./dist/apexws.cjs","./apexws.umd.js":"./dist/apexws.umd.js"},"scripts":{"test":"tsc && mocha --loader=ts-node/esm","build":"tsc && rollup -c","watch":"tsc --watch","format":"prettier --write .","prepublishOnly":"rm -rf dist && npm run build && npm test"},"_npmUser":{"name":"apexinfosys","email":"admin@apexinfosys.in"},"_resolved":"/Users/advait/apex-buildtmp/npm-dist/apexinfosysindia-js-websocket-9.6.2.tgz","_integrity":"sha512-neo2kicBhorQwLT0gVmN35D7QCnaENTzULcqZ3zIR87eSLLz2oasYmHEXq0V/XATWekaB8uH3EulofzrtKUglw==","repository":{"url":"git+https://github.com/apexinfosysindia/js-websocket.git","type":"git"},"_npmVersion":"10.2.4","description":"ApexOS websocket client","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.1.0","assert":"^2.0.0","rollup":"^4.3.0","ts-node":"^10.9.2","prettier":"^3.0.0","typescript":"^5.2.2","@types/mocha":"^10.0.9","@types/assert":"^1.4.7"},"_npmOperationalInternal":{"tmp":"tmp/js-websocket_9.6.2_1784574663200_0.15565310482479866","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Superseded by 9.6.3 (renamed public API; see repo releases)"},"9.6.3":{"name":"@apexinfosysindia/js-websocket","version":"9.6.3","author":{"name":"ApexOS"},"license":"Apache-2.0","_id":"@apexinfosysindia/js-websocket@9.6.3","maintainers":[{"name":"apexinfosys","email":"admin@apexinfosys.in"}],"homepage":"https://github.com/apexinfosysindia/js-websocket#readme","bugs":{"url":"https://github.com/apexinfosysindia/js-websocket/issues"},"dist":{"shasum":"131b2962003e164759d8351f9c77bb6161dacb44","tarball":"https://registry.npmjs.org/@apexinfosysindia/js-websocket/-/js-websocket-9.6.3.tgz","fileCount":34,"integrity":"sha512-+++gdVCqI48pDgSrbbJdwaFMVlU3mwjsJMXFNQB5skcX1YJMy7TZoJ7gN1HNhAOHiOyHmiEVTkba/7B0qfihRw==","signatures":[{"sig":"MEUCIH6VW07sBCGRXT3jpVT2G0KJEZlo6VaA3lP9BnpmyatBAiEAzx40jbxtLjLJ7x6AbOx0kZbSq4MLOD1xaMRJ+H31pko=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":161154},"main":"dist/apexws.umd.js","type":"module","_from":"file:/Users/advait/apex-buildtmp/npm-dist/apexinfosysindia-js-websocket-9.6.3.tgz","types":"dist/index.d.ts","module":"dist/index.js","source":"lib/index.ts","exports":{".":{"import":"./dist/index.js","default":"./dist/apexws.umd.js","require":"./dist/apexws.cjs"},"./dist/*":"./dist/*","./apexws.cjs":"./dist/apexws.cjs","./apexws.umd.js":"./dist/apexws.umd.js"},"scripts":{"test":"tsc && mocha --loader=ts-node/esm","build":"tsc && rollup -c","watch":"tsc --watch","format":"prettier --write .","prepublishOnly":"rm -rf dist && npm run build && npm test"},"_npmUser":{"name":"apexinfosys","email":"admin@apexinfosys.in"},"_resolved":"/Users/advait/apex-buildtmp/npm-dist/apexinfosysindia-js-websocket-9.6.3.tgz","_integrity":"sha512-+++gdVCqI48pDgSrbbJdwaFMVlU3mwjsJMXFNQB5skcX1YJMy7TZoJ7gN1HNhAOHiOyHmiEVTkba/7B0qfihRw==","repository":{"url":"git+https://github.com/apexinfosysindia/js-websocket.git","type":"git"},"_npmVersion":"10.2.4","description":"ApexOS websocket client","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.1.0","assert":"^2.0.0","rollup":"^4.3.0","ts-node":"^10.9.2","prettier":"^3.0.0","typescript":"^5.2.2","@types/mocha":"^10.0.9","@types/assert":"^1.4.7"},"_npmOperationalInternal":{"tmp":"tmp/js-websocket_9.6.3_1784662895222_0.732272768733381","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-07-20T18:36:48.537Z","modified":"2026-07-22T13:22:58.310Z","9.6.1":"2026-07-20T18:36:48.820Z","9.6.2":"2026-07-20T19:11:03.347Z","9.6.3":"2026-07-21T19:41:35.357Z"},"bugs":{"url":"https://github.com/apexinfosysindia/js-websocket/issues"},"author":{"name":"ApexOS"},"license":"Apache-2.0","homepage":"https://github.com/apexinfosysindia/js-websocket#readme","repository":{"url":"git+https://github.com/apexinfosysindia/js-websocket.git","type":"git"},"description":"ApexOS websocket client","maintainers":[{"name":"apexinfosys","email":"admin@apexinfosys.in"}],"readme":"# @apexinfosysindia/js-websocket\n\nJavaScript/TypeScript client for the ApexOS websocket API. Handles\nauthentication, automatic reconnection, subscribing to entity, config and\nservice collections, and calling backend commands from the browser or Node.\n\nLicensed Apache-2.0 (`LICENSE.md`, preserved unmodified; see `NOTICE`).\n\n## Usage\n\n```js\nimport {\n  createConnection,\n  createLongLivedTokenAuth,\n  subscribeEntities,\n} from \"@apexinfosysindia/js-websocket\";\n\nconst auth = createLongLivedTokenAuth(\"http://apexos.local:1702\", token);\nconst connection = await createConnection({ auth });\nsubscribeEntities(connection, (entities) => console.log(entities));\n```\n\n## Development\n\n```sh\nnpm install\nnpm test        # tsc + mocha\nnpm run build   # tsc + rollup (ESM, CJS and UMD bundles in dist/)\n```\n\n## License\n\nApache-2.0 — see `LICENSE.md`.\n","readmeFilename":"README.md"}