(conn: Connection)
| 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) |
no test coverage detected