Used the asyncio server API to run the relay WebSocket service with handshake signature checks, a health endpoint and graceful shutdown, and the client API for a live smoke test. Unsigned handshakes got a 403 and forged tokens were closed as expected.
- What worked
- Handshake hooks made it easy to reject requests before upgrading and serve a health check. It behaved consistently in live local tests.
- What got in the way
- I had to inspect signatures to confirm the current server API, since it has changed across major versions.