Skip to main content

Ledger Chat

Voice and video calls

How calls connect, how they are encrypted, and what they reveal about your network.

Calls in Ledger Chat connect your browser directly to the other person's browser using WebRTC, the technology built into every modern browser for real time audio and video.

Encryption

WebRTC always encrypts audio and video with DTLS-SRTP. The keys are negotiated between the two browsers, so a server that helps set up the call or relays its traffic cannot decode it.

How a call connects

  1. Ringing

    The ring, the answer, a decline and a hang up travel as encrypted XMTP messages, so a call reaches the other person wherever they are in the app, without the conversation open.

  2. Signalling

    The two browsers exchange connection details through a PeerJS signalling server. It sees an identifier for each side and when the call is set up, not the audio or video.

  3. Finding a route

    Each browser asks a STUN server, operated by Google, for its public network address so the two can try to connect directly.

  4. Direct or relayed

    If a direct connection is not possible, for example on a mobile network or behind a strict company network, the call needs a relay (a TURN server). Ledger Chat uses its own relay service when it is switched on; the public relay it used before no longer works and was removed. The relay passes encrypted packets and cannot decode them. Until the relay is switched on, calls between two networks that both block direct connections may not connect.

During a call

  • Answering takes one tap and opens the caller's conversation. A ring never changes the conversation you have open.
  • On a computer the call is a card; on a phone it fills the screen.
  • Hanging up or declining ends the call on both sides in every state, also while it is still connecting or reconnecting.
  • Screen sharing is offered where the browser can capture a screen. Phone browsers that cannot say so and point to a computer.
  • Picture in picture keeps both faces: the other person fills the floating window and your own camera is a small mirrored inset in its corner. On Chrome and Edge on a computer the floating window also has Mute, Camera and End. On Safari and Chrome on Android the two videos are combined into one before they leave the page. Where a browser offers neither, the button is not shown. Audio stays with the call and never moves into the floating window.
  • Call settings let you choose the audio output where the browser allows it.

Your IP address

In a direct call the other person's browser learns your IP address, which can reveal your approximate location. To avoid this, turn on Hide my IP address in calls in settings. Every call is then relayed, which hides your address from the other side at the cost of slightly higher latency.

Group calls

Calls are one to one. Group calls are not available: the server routes for them answer 410.

Your browser asks for permission before Ledger Chat can use your microphone or camera. You can withdraw it at any time from the address bar.