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

Function isCloseEvent

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

Source from the content-addressed store, hash-verified

189 * @since 4.0.0
190 */
191export const isCloseEvent = (u: unknown): u is CloseEvent => Predicate.hasProperty(u, CloseEventTypeId)
192
193/**
194 * Type-level identifier used to mark `SocketError` values.

Callers 1

writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected