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 viawsContext
flagreset: true
- Support multiple contexts in
wsContext
with array value forcontext
- Document usage of
srv.tx(req).emit
for tenant and user propagation in WS broadcasting - Document usage of
wsContext
for formatpcp
andcloudevents