Releases: cap-js-community/websocket
Releases · cap-js-community/websocket
v1.6.3
v1.6.2
v1.6.1
Fixed:
- Split variadic parameter
contextofwsContextintocontextfor single andcontextsfor multiple contexts - Register
wsprotocols in CDS env instead ofcds-plugin.js - Fix
wsDisconnectoperation without reason parameter - Document
wsDisconnectwith reason parameter - Improve Redis connection check logging
v1.6.0
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
dummyauth strategy - Fix call to
wsDisconnectoperation without reason parameter - Cast reason parameter for
wsDisconnectoperation to string - Fill
baseUrlfor 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:
resetall contexts viawsContextflagreset: true- Support multiple contexts in
wsContextwith array value forcontext - Document usage of
srv.tx(req).emitfor tenant and user propagation in WS broadcasting - Document usage of
wsContextfor formatpcpandcloudevents
v1.5.2
v1.5.1
v1.5.0
v1.4.1
v1.4.0
Changed:
- Socket.IO implementation does not use server
pathoption anymore, in alignment with kindws - Use
io("/ws/chat")instead ofio("/chat", { path: "/ws" })
Fixed:
- Support for http conform headers (
x-wsandx-websocket) - Revise error handling for websocket events
- Fix for operations without parameters
- Fix support for absolute service paths
- Update documentation
1.3.0
Added:
- Provide event headers to formatter
- Support exclusion of event contexts
- Include or exclude defined list of users
- Add support for Cloud Events with format
cloudeventresp.cloudevents - Overrule path of websocket event via
@websocket.pathor@ws.pathfor non-websocket services - Overrule format of websocket event via
@websocket.formator@ws.formatfor non-websocket services - Ignore event elements or operation parameters with
@websocket.ignoreor@ws.ignore
Fixed:
- Improve documentation and examples
- Allow empty PCP message in event definition
- Optimization of client determination for kind
ws - Ignore not modeled PCP fields in payload serialization
- Fix annotations value derivation for non-websocket service events
- Fix annotations
wsCurrentUserInclude,currentUserInclude,wsCurrentUserExclude,currentUserExclude