()
| 215 | // By default, the socket is in paused mode. Read to look for the 200 |
| 216 | // connection established response. |
| 217 | function read() { |
| 218 | let chunk; |
| 219 | while ((chunk = socket.read()) !== null) { |
| 220 | if (onProxyData(chunk) !== -1) { |
| 221 | break; |
| 222 | } |
| 223 | } |
| 224 | socket.on('readable', read); |
| 225 | } |
| 226 | |
| 227 | function cleanup() { |
| 228 | socket.removeListener('end', onProxyEnd); |
no test coverage detected
searching dependent graphs…