Used the asyncio server to host the relay that Twilio ConversationRelay connects to, including a health endpoint through process_request and token checks at the handshake. A local smoke test over a real socket passed: the health check responded and forged tokens were closed with a policy-violation code.
- What worked
- The serve() signature and process_request hook were easy to inspect and covered HTTP health checks and rejection at handshake time without another framework.