MCPcopy
hub / github.com/nodejs/undici / close

Method close

types/websocket.d.ts:39–39  ·  view source on GitHub ↗
(code?: number, reason?: string)

Source from the content-addressed store, hash-verified

37 readonly url: string
38
39 close(code?: number, reason?: string): void
40 send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void
41
42 readonly CLOSED: number

Callers 15

runFunction · 0.95
closeMethod · 0.65
closeMethod · 0.65
[kClose]Method · 0.65
[kClose]Method · 0.65
[kClose]Method · 0.65
closeMethod · 0.65
[kOnDrain]Method · 0.65
[kClose]Method · 0.65
[kRemoveClient]Method · 0.65
[kClose]Method · 0.65
closeStreamFunction · 0.65

Calls

no outgoing calls

Tested by 1

closeMethod · 0.52