MCPcopy Index your code
hub / github.com/plotly/dash / isWebSocketAvailable

Function isWebSocketAvailable

dash/dash-renderer/src/utils/workerClient.ts:367–380  ·  view source on GitHub ↗
(config: {
    websocket?: {
        enabled?: boolean;
        url?: string;
        worker_url?: string;
        inactivity_timeout?: number;
    };
})

Source from the content-addressed store, hash-verified

365 * @param config The Dash config
366 */
367export 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}

Callers 1

__executeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…