Skip to main content
testWebsocketConnectivity() Tests whether WebSocket connections can be established with Daily’s signaling servers across AWS regions. Useful for precall checks to detect firewall or VPN issues before a room is joined.
A passing result does not indicate that the user is authorized to join a call — only that WebSocket connections are possible. A warning result does not guarantee calls will fail.

Return value

Returns Promise<DailyWebsocketConnectivityTestResults>.
'passed' | 'warning' | 'failed' | 'aborted'
  • 'passed' — WebSocket connections succeeded in all regions
  • 'warning' — at least one region failed; calls may still work but issues are possible
  • 'failed' — no region could be connected to
  • 'aborted' — test was stopped via abortTestWebsocketConnectivity() before all regions completed
string[]
AWS region identifiers where the WebSocket connection succeeded.
string[]
AWS region identifiers where the WebSocket connection failed.
string[]
AWS region identifiers where the connection attempt was aborted.

Example

Example response

See also