Socket
Book a DemoInstallSign in
Socket

@cap-js-community/websocket

Package Overview
Dependencies
Maintainers
3
Versions
33
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.2

Diff
o
oklemenz2
published 1.7.2 •

Changelog

Source

Version 1.7.2 - 2025-08-04

Fixed

  • Propagate headers to all places

Added

  • Server websocket client CDS service
o
oklemenz2
published 1.7.1 •

Changelog

Source

Version 1.7.1 - 2025-07-03

Fixed

  • Adapter loading for Socket.IO
o
oklemenz2
published 1.7.0 •

Changelog

Source

Version 1.7.0 - 2025-06-03

Fixed

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

Changelog

Source

Version 1.6.4 - 2025-05-05

Fixed

  • Security: Dynamic method call
o
oklemenz2
published 1.6.3 •

Changelog

Source

Version 1.6.3 - 2025-04-10

Added

  • Adopt common module
o
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
o
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
o
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
o
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
o
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
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.