Tests whether WebSocket connections can be established with Daily signaling servers across AWS regions.
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.
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
const results = await call.testWebsocketConnectivity();switch (results.result) { case 'failed': console.warn('Cannot connect via WebSockets. Contact your network admin.'); break; case 'warning': console.warn('Some regions unreachable:', results.failedRegions); break; case 'aborted': console.log('Test aborted.'); break; case 'passed': default: console.log('WebSocket connectivity confirmed in all regions.');}