Expand description
Protocol message types for client-proxy communication.
This module defines the message types used in the three-phase protocol:
§Message Flow
§Phase 1: Authentication
- Server → Client:
Messages::AuthChallenge- Random challenge for the client to sign - Client → Server:
Messages::AuthResponse- Client’s identity and signature
§Phase 2: Rendezvous (Optional)
- Client → Server:
Messages::GetRendezvous- Request a temporary code - Server → Client:
Messages::RendezvousInfo- The generated code (e.g., “ABC-DEF-GHI”) - Client → Server:
Messages::GetIdentity- Look up identity by code - Server → Client:
Messages::IdentityInfo- The identity associated with the code
§Phase 3: Messaging
- Client → Server:
Messages::Send- Client sends message (destination + payload only) - Server → Client:
Messages::Send- Server forwards with validated source added
All messages are serialized as JSON over WebSocket connections.
Enums§
- Messages
- Protocol messages exchanged between clients and the proxy server.