(chunk: Uint8Array | string | CloseEvent)
| 723 | } |
| 724 | if (opts?.onOpen) yield* opts.onOpen |
| 725 | return yield* Effect.catchFilter( |
| 726 | FiberSet.join(fiberSet), |
| 727 | SocketCloseError.filterClean((_) => !closeCodeIsError(_)), |
| 728 | () => Effect.void |
| 729 | ) |
| 730 | })).pipe( |
| 731 | Effect.updateContext((input: Context.Context<R>) => Context.merge(acquireContext, input)), |
| 732 | Effect.ensuring(Effect.sync(() => { |
| 733 | latch.closeUnsafe() |
| 734 | currentWS = undefined |
| 735 | })) |
| 736 | ) |
no test coverage detected
searching dependent graphs…