MCPcopy Create free account
hub / github.com/cn-docs/vueuse / constructor

Method constructor

packages/core/useEventSource/index.test.ts:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 readonly CLOSED = 2 as const
11
12 constructor() {
13 super();
14 (this as EventSource).addEventListener('error', this.onerror);
15 (this as EventSource).addEventListener('message', this.onmessage)
16 this.addEventListener('open', this.onopen)
17 }
18
19 onerror(_ev: Event) {
20 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected