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

Function close

packages/effect/src/graphql/GraphQLProtocol.ts:931–934  ·  view source on GitHub ↗
(conn: Connection)

Source from the content-addressed store, hash-verified

929 )
930
931 const close = (conn: Connection) => {
932 lose(conn, new TransportError({ description: "The graphql-ws connection was closed" }))
933 return conn.fiber === undefined ? Effect.void : Fiber.interrupt(conn.fiber)
934 }
935
936 const acquireConnection = Effect.suspend(() => {
937 if (connection !== undefined) return Effect.succeed(connection)

Callers 1

makeWebSocketFunction · 0.70

Calls 2

loseFunction · 0.85
interruptMethod · 0.45

Tested by

no test coverage detected