{"cds":{"schema":{"cds":{"websocket":{"oneOf":[{"type":"object","properties":{"impl":{"type":"string","description":"Websocket implementation path"},"kind":{"enum":["ws","socket.io"],"type":"string","default":"ws","description":"Websocket implementation kind"},"roles":{"type":"array","items":{"type":"string"},"description":"Roles filterable for websockets"},"format":{"enum":["json","pcp","cloudevent","cloudevents"],"type":"string","default":"json","description":"Websocket format"},"adapter":{"type":"object","properties":{"impl":{"enum":["redis","@socket.io/redis-adapter","@socket.io/redis-streams-adapter"],"type":"string","description":"Websocket adapter implementation"},"local":{"type":"boolean","default":false,"description":"Enable websocket adapter in local environment"},"active":{"type":"boolean","default":true,"description":"Enable websocket adapter"},"config":{"type":"object","description":"Websocket adapter implementation configurations (i.e. Redis client options)","additionalProperties":true},"options":{"type":"object","properties":{"key":{"type":"string","default":"websocket","description":"Websocket adapter channel prefix"}},"description":"Websocket adapter implementation options","additionalProperties":true}},"description":"Websocket adapter configuration options"},"options":{"type":"object","description":"Websocket implementation configuration options","additionalProperties":true},"operator":{"type":"object","required":["include","exclude"],"properties":{"exclude":{"enum":["and","or"],"type":"string","default":"or"},"include":{"enum":["and","or"],"type":"string","default":"or"}},"additionalProperties":false}}},{"type":"boolean","description":"Set to false to disable websockets"}]}}},"requires":{"kinds":{"websocket-ws":{"impl":"@cap-js-community/websocket/src/socket/ws.js"},"websocket-client-ws":{"url":"","impl":"@cap-js-community/websocket/src/client/ws.js","format":"json","headers":{},"protocols":[]},"websocket-socket.io":{"impl":"@cap-js-community/websocket/src/socket/socket.io.js"},"websocket-client-socket.io":{"url":"","impl":"@cap-js-community/websocket/src/client/socket.io.js","format":"json","headers":{},"protocols":[]}},"redis-websocket":{"vcap":{"label":"redis-cache"}}},"protocols":{"ws":{"impl":"@cap-js-community/websocket","path":"/ws"},"websocket":{"impl":"@cap-js-community/websocket","path":"/ws"}},"websocket":{"kind":"ws"}},"bugs":{"url":"https://github.com/cap-js-community/websocket/issues"},"dist":{"shasum":"5c1916a215562664f94a484d0aead22dee460560","tarball":"https://registry.npmjs.org/@cap-js-community/websocket/-/websocket-1.11.3.tgz","fileCount":25,"integrity":"sha512-JHO8bwN2pHerURJc+B++ictdZ2S8432kS9cXpbmq5goLKrbVspeJ8AUIkajzLF/fKZQ8mOsY0bUrwSxigyiWtg==","signatures":[{"sig":"MEUCIQDlGkdzIPS1HyJcxVF5ocA0+E9QWDRetlyjGvbiX3B77gIgWXtf0+C0uxMH76+Mdems7mxGMLtoItBHStPJzkMxpDg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDN0Mr7X7gEeoeq2waeGipQhSRUjGzlHAg19jatpY2GlAIgYaduKhS+iQ8aB1atOpigx+PGNVaEaQt0CFB6AHeSw04=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cap-js-community%2fwebsocket@1.11.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":226133},"main":"src/index.js","name":"@cap-js-community/websocket","types":"src/index.d.ts","author":{"name":"Oliver Klemenz","email":"oliver.klemenz@sap.com"},"engines":{"node":">=18"},"gitHead":"5291461d188705323631638a302cff6c49842b7f","license":"Apache-2.0","scripts":{"run":"cd ./test/_env && cds-serve","lint":"npm run eslint && npm run prettier","test":"vitest run","audit":"npm audit --only=prod","start":"npm start --prefix=./test/_env","eslint":"eslint --fix .","lint:ci":"npm run eslint:ci && npm run prettier:ci","prettier":"prettier \"**/*.{js,json,md,yml,yaml}\" --write --log-level error","eslint:ci":"eslint .","start:uaa":"npm run start:uaa --prefix=./test/_env","prettier:ci":"prettier \"**/*.{js,json,md,yml,yaml}\" --check","start:redis":"CDS_ENV=ws npm start --prefix=./test/_env","test:update":"vitest run -u","upgrade-lock":"rm -rf package-lock.json node_modules && npm i","prepareRelease":"npm prune --production","start:socketio":"npm run start:socketio --prefix=./test/_env","start:approuter":"npm start --prefix=./test/_env/approuter","start:socketio:uaa":"npm run start:socketio:uaa --prefix=./test/_env","start:socketio:redis":"CDS_ENV=socketio npm run start:socketio --prefix=./test/_env"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"47617bed-947b-40f1-bd0b-9e40394f4521"}},"homepage":"https://cap.cloud.sap/","keywords":["CAP","CDS","WS","WebSocket","Socket.IO"],"repository":{"url":"git+https://github.com/cap-js-community/websocket.git","type":"git"},"_npmVersion":"12.2.1","description":"WebSocket adapter for CDS","directories":{},"maintainers":[{"name":"sap_extncrepos","email":"mob.extrepo.stores@sap.com"},{"name":"cap-npm","email":"cap@sap.com"},{"name":"sap-ospo-admin","email":"ospo@sap.com"},{"name":"rlindner81sap","email":"richard.lindner@sap.com"},{"name":"smax","email":"maximilian.gruenfelder@sap.com"},{"name":"oklemenz2","email":"oliver.klemenz@sap.com"}],"_nodeVersion":"24.21.0","allowScripts":{"fsevents@2.3.3":true},"dependencies":{"ws":"^8.22.0","socket.io":"^4.8.4","socket.io-client":"^4.8.4","@cap-js-community/common":"^0.5.5"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^10.13.0","vitest":"^5.0.5","globals":"^17.13.0","@sap/cds":"^10.2.1","prettier":"^3.9.10","@eslint/js":"^10.0.1","@sap/cds-dk":"^10.2.0","@cap-js/sqlite":"^3.1.2","eslint-plugin-n":"^18.5.0","@cap-js/cds-test":"^1.0.2","@vitest/coverage-v8":"^5.0.5","@vitest/eslint-plugin":"^1.6.27","eslint-config-prettier":"^10.1.8","@socket.io/redis-adapter":"^8.3.0","@cap-js-community/websocket":"./","@socket.io/redis-streams-adapter":"^0.3.1"},"_npmOperationalInternal":{"tmp":"tmp/websocket_1.11.3_1792657812177_0.040468111539144536","host":"s3://npm-registry-packages-npm-production"},"_id":"@cap-js-community/websocket@1.11.3","version":"1.11.3"}