Skip to main content
The Instant Messaging Protocol supports various message types:
  • “register”: Register a new peer with the server
  • “discover”: Request a list of all connected peers
  • “message”: Encrypted peer-to-peer messages
  • “peer_disconnected”: Notification when a peer disconnects
  • “request_public_key”: Request a peer’s public key
  • “public_key_response”: Response containing a peer’s public key
  • “server_question”: Question from the server to a peer
  • “peer_response”: Response from a peer to a server question
  • “debug_question”: Debug message to trigger a server question
  • “error”: Error notification with details