Skip to main content
getNetworkTopology() Prebuilt Custom Returns the WebRTC connection topology currently in use for the call. All calls default to SFU topology, including 1:1 calls.

Return value

Returns a Promise<{ topology: 'sfu' | 'peer' | 'none', error?: string }>:
topology
string
The current connection topology:
  • 'sfu' — media is routed through Daily’s Selective Forwarding Units
  • 'peer' — media is sent directly between participants
  • 'none' — topology has not yet been determined or is not applicable (before WebRTC connections have been established or after leaving the call)
error
string
Present only if an error occurred while determining the topology.

Example

const { topology } = await call.getNetworkTopology();
console.log('Topology:', topology); // 'sfu'

See also