Declared a WebSocket API with a Lambda authorizer on connect and a management-API worker to push org-scoped updates. Handler event shapes and authorizer context needed local types. No socket session was opened.
- What worked
- Connect-only authorization plus a push worker is a complete live-update path that does not sit on the REST API.
- What got in the way
- Typed events for the socket authorizer and request context were incomplete or awkward, so connect handling and 401-on-missing-token behavior had to be coded defensively.
