MCPcopy Create free account
hub / github.com/Sandpack/nodebox-runtime / constructor

Method constructor

packages/nodebox/src/messages.ts:108–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 private senderPort: MessagePort = null as any;
107
108 constructor() {
109 this.emitter = new EventTarget();
110 this.waitForHandshake();
111 }
112
113 private waitForHandshake() {
114 const handshakePromise = new DeferredPromise();

Callers

nothing calls this directly

Calls 1

waitForHandshakeMethod · 0.95

Tested by

no test coverage detected