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

Function isSocket

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

Source from the content-addressed store, hash-verified

45 * @since 4.0.0
46 */
47export const isSocket = (u: unknown): u is Socket => Predicate.hasProperty(u, TypeId)
48
49/**
50 * Service tag for bidirectional socket transports.

Callers 1

Socket.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected