MCPcopy Create free account
hub / github.com/nodejs/undici / constructor

Method constructor

lib/core/errors.js:256–262  ·  view source on GitHub ↗
(message, socket)

Source from the content-addressed store, hash-verified

254const kSocketError = Symbol.for('undici.error.UND_ERR_SOCKET')
255class SocketError extends UndiciError {
256 constructor (message, socket) {
257 super(message)
258 this.name = 'SocketError'
259 this.message = message || 'Socket error'
260 this.code = 'UND_ERR_SOCKET'
261 this.socket = socket
262 }
263
264 static [Symbol.hasInstance] (instance) {
265 return instance && instance[kSocketError] === true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected