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

Function isSocketAddress

packages/effect/src/net/NetAddress.ts:680–680  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

678 * @since 4.0.0
679 */
680export const isSocketAddress = (u: unknown): u is SocketAddress => isInetAddress(u) || isUnixPathAddress(u)
681
682const Ipv4Proto = {
683 ...Inspectable.BaseProto,

Callers

nothing calls this directly

Calls 2

isInetAddressFunction · 0.85
isUnixPathAddressFunction · 0.85

Tested by

no test coverage detected