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

Function isWebSocketEnabled

dash/dash-renderer/src/utils/workerClient.ts:357–361  ·  view source on GitHub ↗
(config: {
    websocket?: {enabled: boolean};
})

Source from the content-addressed store, hash-verified

355 * @param config The Dash config
356 */
357export 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).

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…