(config: {
websocket?: {
enabled?: boolean;
url?: string;
worker_url?: string;
inactivity_timeout?: number;
};
})
| 365 | * @param config The Dash config |
| 366 | */ |
| 367 | export function isWebSocketAvailable(config: { |
| 368 | websocket?: { |
| 369 | enabled?: boolean; |
| 370 | url?: string; |
| 371 | worker_url?: string; |
| 372 | inactivity_timeout?: number; |
| 373 | }; |
| 374 | }): boolean { |
| 375 | return !!( |
| 376 | config.websocket?.url && |
| 377 | config.websocket?.worker_url && |
| 378 | typeof SharedWorker !== 'undefined' |
| 379 | ); |
| 380 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…