MCPcopy Create free account
hub / github.com/wevm/viem / constructor

Method constructor

src/errors/request.ts:126–136  ·  view source on GitHub ↗
({
    url,
  }: {
    url?: string | undefined
  } = {})

Source from the content-addressed store, hash-verified

124export class SocketClosedError extends BaseError {
125 url: string | undefined
126 constructor({
127 url,
128 }: {
129 url?: string | undefined
130 } = {}) {
131 super('The socket has been closed.', {
132 metaMessages: [url && `URL: ${getUrl(url)}`].filter(Boolean) as string[],
133 name: 'SocketClosedError',
134 })
135 this.url = url
136 }
137}
138
139export type TimeoutErrorType = TimeoutError & {

Callers

nothing calls this directly

Calls 1

getUrlFunction · 0.85

Tested by

no test coverage detected