MCPcopy Create free account
hub / github.com/Effect-TS/effect / constructor

Method constructor

packages/effect/src/unstable/socket/Socket.ts:170–174  ·  view source on GitHub ↗
(code = 1000, reason?: string)

Source from the content-addressed store, hash-verified

168 readonly reason?: string | undefined
169
170 constructor(code = 1000, reason?: string) {
171 this[CloseEventTypeId] = CloseEventTypeId
172 this.code = code
173 this.reason = reason
174 }
175 /**
176 * Formats the close code and optional reason for display.
177 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected