| 977 | it.effect("reports send errors as SocketError", () => |
| 978 | Effect.gen(function*() { |
| 979 | class ThrowingWebSocket extends EventTarget { |
| 980 | readonly readyState = globalThis.WebSocket.OPEN |
| 981 | |
| 982 | close(): void {} |
| 983 | |
| 984 | send(): void { |
| 985 | throw new Error("send failed") |
| 986 | } |
| 987 | } |
| 988 | const webSocket = new ThrowingWebSocket() |
| 989 | const socket = yield* Socket.makeWebSocket(Effect.succeed(url)).pipe( |
| 990 | Effect.provideService( |
nothing calls this directly
no outgoing calls
no test coverage detected