(response: FromServerEncoded)
| 1180 | pending.add(String(requests[i].id)) |
| 1181 | } |
| 1182 | const onResponse = (response: FromServerEncoded) => { |
| 1183 | if (response._tag === "Exit") { |
| 1184 | pending.delete(String(response.requestId)) |
| 1185 | } else if (isTerminalResponse(response)) { |
| 1186 | // defects and protocol errors end every request of the client |
| 1187 | pending.clear() |
| 1188 | } |
| 1189 | return writeResponse(clientId, response) |
| 1190 | } |
| 1191 | |
| 1192 | if (!isFramed) { |
| 1193 | const text = yield* response.text.pipe(Effect.mapError(httpClientError)) |
no test coverage detected