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

Function isCloseEvent

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

Source from the content-addressed store, hash-verified

344 * @since 4.0.0
345 */
346export const isCloseEvent = (u: unknown): u is CloseEvent => Predicate.hasProperty(u, CloseEventTypeId)
347
348/**
349 * Type-level identifier used to mark `SocketError` values.

Callers 2

writeChunkFunction · 0.85
writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected