network-quality-change
Prebuilt Custom Fires when the network quality assessment changes.Reasons contributing to a
'low' or 'bad' state. Possible values include 'sendPacketLoss' and 'recvPacketLoss'. Omittied if networkState is 'good'.The latest network stats bundle. Shape matches the return value of
getNetworkStats().network-connection
Prebuilt Custom Fires when a network connection is established or interrupted. Every call uses two connections simultaneously:signaling: a websocket connection used for call management and messaging. It retries twice before giving up; if it can’t reconnect, the call ends with anerrorevent (type: 'connection-error') followed byleft-meeting. We don’t recommend building reconnection logic aroundsignalinginterruption events for this reason.peer-to-peerorsfu: carries audio and video. A call uses one or the other, never both. All calls default to SFU topology, including 1:1 calls. See P2P vs SFU calls for details. Both reconnect automatically as long assignalingis alive.
The server only removes a stale participant after about 35-40 seconds with no signal from them, so a participant may appear connected to others for a while after they’ve actually left. This is particularly common with Firefox, where closing the laptop lid doesn’t cleanly signal that the participant has left the meeting.
cpu-load-change
Prebuilt Custom Fires when the CPU load state changes. WhencpuLoadState is 'high', consider lowering outgoing video quality via updateSendSettings(), requesting a lower simulcast layer via updateReceiveSettings(), or reducing video subscriptions in large calls.
The reason for the current state:
'none' (load is low), 'encode' (video encoding), 'decode' (video decoding), or 'scheduleDuration' (Daily code not completing within its scheduled interval).test-completed
Prebuilt Custom Fires when a prejoin test completes.Daily Prebuilt runs
testCallQuality() automatically in its prejoin UI — you can listen for this event to read the results without calling it manually.Which test completed:
'call-quality', 'p2p-call-quality', 'network-connectivity', or 'websocket-connectivity'.The test results. Shape matches the return type of the corresponding test method — see
testCallQuality().