MCPcopy Create free account
hub / github.com/abi/screenshot-to-code / constructor

Method constructor

frontend/src/tests/qa.test.ts:449–455  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

447 listeners: Record<string, Array<(event: unknown) => void>> = {};
448
449 constructor(url: string) {
450 this.url = url;
451 window.setTimeout(() => {
452 this.readyState = MockWebSocket.OPEN;
453 this.emit("open", {});
454 }, 10);
455 }
456
457 addEventListener(type: string, listener: (event: unknown) => void) {
458 if (!this.listeners[type]) {

Callers

nothing calls this directly

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected