()
| 169 | |
| 170 | class Client extends EventEmitter { |
| 171 | constructor() { |
| 172 | super(); |
| 173 | this.handleChunk = FunctionPrototypeBind(this._handleChunk, this); |
| 174 | |
| 175 | this._port = undefined; |
| 176 | this._host = undefined; |
| 177 | |
| 178 | this.reset(); |
| 179 | } |
| 180 | |
| 181 | _handleChunk(chunk) { |
| 182 | this._unprocessed = Buffer.concat([this._unprocessed, chunk]); |