(client: SocketClient)
| 274 | } |
| 275 | |
| 276 | const socketStream = (client: SocketClient) => { |
| 277 | const effect = Effect.flatMap(client.write(request), () => client.read(streamBytes)) |
| 278 | return () => Effect.runPromise(effect) |
| 279 | } |
| 280 | |
| 281 | const socketPingPong = (client: SocketClient) => { |
| 282 | // A plain counter loop rather than `Effect.repeat`, whose Schedule reads the |