(err: Socket.SocketError)
| 248 | } |
| 249 | // Teardown or failure: consumed bytes are discarded. |
| 250 | function close(err: Socket.SocketError) { |
| 251 | error ??= err |
| 252 | closed = true |
| 253 | pending = undefined |
| 254 | drain() |
| 255 | } |
| 256 | function onEnd() { |
| 257 | end(new Socket.SocketError({ reason: new Socket.SocketCloseError({ code: 1000 }) })) |
| 258 | } |
no test coverage detected