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

Function isSocketError

packages/effect/src/unstable/socket/Socket.ts:215–215  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

213 * @since 4.0.0
214 */
215export const isSocketError = (u: unknown): u is SocketError => Predicate.hasProperty(u, SocketErrorTypeId)
216
217/**
218 * Typed error for failures that occur while reading from a socket.

Callers 2

isMethod · 0.85
runRawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected