🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@cap-js-community/websocket

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cap-js-community/websocket - npm Package Versions

234

1.7.0

Diff
oklemenz2
published 1.7.0 •

Changelog

Source

Version 1.7.0 - 2025-06-03

Fixed

  • CDS 9 compatibility
  • Fix typing definition file
oklemenz2
published 1.6.4 •

Changelog

Source

Version 1.6.4 - 2025-05-05

Fixed

  • Security: Dynamic method call
oklemenz2
published 1.6.3 •

Changelog

Source

Version 1.6.3 - 2025-04-10

Added

  • Adopt common module
oklemenz2
published 1.6.2 •

Changelog

Source

Version 1.6.2 - 2025-04-02

Fixed

  • Compatibility for wsContext to map array value of context to contexts
  • Housekeeping
oklemenz2
published 1.6.1 •

Changelog

Source

Version 1.6.1 - 2025-03-04

Fixed

  • Split variadic parameter context of wsContext into context for single and contexts for multiple contexts
  • Register ws protocols in CDS env instead of cds-plugin.js
  • Fix wsDisconnect operation without reason parameter
  • Document wsDisconnect with reason parameter
  • Improve Redis connection check logging
oklemenz2
published 1.6.0 •

Changelog

Source

Version 1.6.0 - 2025-02-03

Fixed

  • Check authorization and service path before websocket upgrade
  • Reject connection to non-websocket protocol paths
  • Support unauthenticated requests via option cds.requires.auth.restrict_all_services: false
  • Support privileged user, e.g. via dummy auth strategy
  • Fix call to wsDisconnect operation without reason parameter
  • Cast reason parameter for wsDisconnect operation to string
  • Fill baseUrl for websocket requests (necessary for request context specific model in toggle/extensibility scenario)
  • Clean websocket context from internal read-only attributes
  • Normalize client identifier on upgrade request request.id
  • Return 404 when url cannot be associated with a service in upgrade request
  • Parse string values according to operation parameter type in custom formats (e.g. pcp)

Added

  • reset all contexts via wsContext flag reset: true
  • Support multiple contexts in wsContext with array value for context
  • Document usage of srv.tx(req).emit for tenant and user propagation in WS broadcasting
  • Document usage of wsContext for format pcp and cloudevents
oklemenz2
published 1.5.2 •

Changelog

Source

Version 1.5.2 - 2025-01-10

Fixed

  • Fix fallback to redis configuration cds.requires.redis
  • Check for authenticated user during websocket connection (no anonymous)
  • Improve start log using websocket including adapter information
  • Improve server shutdown redis client handling
oklemenz2
published 1.5.1 •

Changelog

Source

Version 1.5.1 - 2025-01-09

Fixed

  • Improve redis connection check
  • Improve connection error handling (e.g. unauthorized)
  • Consolidate dependencies
oklemenz2
published 1.5.0 •

Changelog

Source

Version 1.5.0 - 2025-01-08

Fixed

  • Redis lookup for websocket via CDS env cds.requires.redis-websocket
  • Reworked redis client connection logic
  • Document options
oklemenz2
published 1.4.1 •

Changelog

Source

Version 1.4.1 - 2024-12-02

Fixed

  • Redis adapter error handling