For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

JavaScript: isWebSocketSupported

Detects whether the runtime can establish WebSocket connections.

Examples

Example in a Node.js script

if (!WebSocketFactory.isWebSocketSupported()) {
  console.error('WebSockets are required for this script.')
  process.exitCode = 1
}