Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cap-js-community/websocket

Package Overview
Dependencies
Maintainers
7
Versions
22
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

13

0.8.1

Diff

Changelog

Source

Version 0.8.1 - 2024-03-04

Added

  • Allows to provide event emit headers to dynamically control websocket processing without annotations

Fixed

  • Describe the usage of CDS persistent outbox for websocket events
oklemenz2
published 0.8.0 •

Changelog

Source

Version 0.8.0 - 2024-02-15

Added

  • Introduce optional user concept to broadcast event, except to current context user via annotation @websocket.user or @ws.user
  • Allow to suppress CRUD event broadcast via @websocket.broadcast = 'none' or @ws.broadcast = 'none'
  • Match CRUD broadcast event with CDS service event to filter broadcast data

Fixed

  • Fix leakage of internal processing information to websocket clients
oklemenz2
published 0.7.0 •

Changelog

Source

Version 0.7.0 - 2024-02-09

Added

  • Allow custom server implementations via cds.websocket.impl
  • Allow custom adapter implementations via cds.websocket.adapter.impl (kind ws only)
  • Allow processing of multiple event contexts by annotating event type elements of many or array of type
  • Support for type date event contexts as ISO string representation
  • Support for type object event contexts as JSON stringified representation
oklemenz2
published 0.6.1 •

Changelog

Source

Version 0.6.1 - 2024-01-31

Fixed

  • Correct version confusion (0.5.1 uses 0.6.0 in package.json)
oklemenz2
published 0.6.0 •

oklemenz2
published 0.5.0 •

Changelog

Source

Version 0.5.0 - 2024-01-29

Added

  • Provide user context in examples and tests, to verify authorization flow
  • Introduce optional context concept to broadcast to a client subset via annotation @websocket.context or @ws.context

Fixed

  • Respect tenant isolation for event broadcasting
  • Fix maxListeners issue for ws implementation
  • Refactor middlewares and authorization check
  • Change cds.ws to point to CDS websocket server (not the native implementation, use cds.wss or cds.io for that)
oklemenz2
published 0.4.0 •

Changelog

Source

Version 0.4.0 - 2024-01-26

Added

  • Option to disable websockets via env configuration cds.websocket: false
  • Add configuration schema for websocket environment via cds.schema for CDS plugin

Fixed

  • Change cds websocket env from cds.requires.websocket to cds.websocket accessible via cds.env.websocket
oklemenz2
published 0.3.0 •

Changelog

Source

Version 0.3.0 - 2024-01-22

npm

Added

  • Add overview graphic
  • Disable Redis per default locally, option to enable it
  • Option to broadcast CRUD post-events to all sockets via @websocket.broadcast.all or @ws.broadcast.all

Fixed

  • Remove Redis broadcast for kind ws on message receiving
oklemenz2
published 0.2.0 •

Changelog

Source

Version 0.2.0 - 2024-01-11

Fixed

  • Broadcast service events without connected sockets via Redis
  • Document base websocket server class
oklemenz2
published 0.1.2 •

Changelog

Source

Version 0.1.2 - 2024-01-08

Fixed

  • Set websocket default kind to ws
  • Mock request response more complete
  • More robust setup and error handling
  • Redis off per default
  • Refactoring
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc