(config: {
websocket?: {enabled: boolean};
})
| 355 | * @param config The Dash config |
| 356 | */ |
| 357 | export function isWebSocketEnabled(config: { |
| 358 | websocket?: {enabled: boolean}; |
| 359 | }): boolean { |
| 360 | return !!(config.websocket?.enabled && typeof SharedWorker !== 'undefined'); |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * Check if WebSocket infrastructure is available (for per-callback websocket). |
no outgoing calls
no test coverage detected
searching dependent graphs…