MCPcopy Create free account
hub / github.com/deepnote/deepnote / constructor

Method constructor

packages/runtime-core/src/kernel-client.ts:32–39  ·  view source on GitHub ↗
(url: string | URL, protocols?: string | string[])

Source from the content-addressed store, hash-verified

30export function createJsonWebSocketFactory(): typeof WebSocket {
31 return class extends WebSocket {
32 constructor(url: string | URL, protocols?: string | string[]) {
33 const filtered = Array.isArray(protocols)
34 ? protocols.filter(p => p !== JUPYTER_BINARY_PROTOCOL)
35 : protocols === JUPYTER_BINARY_PROTOCOL
36 ? undefined
37 : protocols
38 super(url, filtered)
39 }
40 } as typeof WebSocket
41}
42

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected