(private onMessage: (message: string) => void)
| 82 | private rawData = Buffer.allocUnsafe(0) |
| 83 | private contentLength = -1 |
| 84 | constructor(private onMessage: (message: string) => void) { |
| 85 | this.socket = new net.Socket() |
| 86 | this.socket.on('data', this.onData) |
| 87 | } |
| 88 | |
| 89 | private onData = (data: Buffer) => { |
| 90 | this.rawData = Buffer.concat([this.rawData, data]) |
nothing calls this directly
no outgoing calls
no test coverage detected