Clean up streamer write code
This commit is contained in:
parent
fc59005da3
commit
3d285416dd
11
Streamer.js
11
Streamer.js
@ -24,10 +24,13 @@ class Streamer {
|
||||
console.log(write_stream)
|
||||
console.log('writing buffer', buffer.toString(), buffer)
|
||||
|
||||
const read_stream = new Readable()
|
||||
read_stream.push(buffer.toString())
|
||||
read_stream.push(null)
|
||||
read_stream.pipe(write_stream)
|
||||
write_stream.push(buffer)
|
||||
write_stream.push(null)
|
||||
|
||||
// const read_stream = new Readable()
|
||||
// read_stream.push(buffer, 'utf8')
|
||||
// read_stream.push(null)
|
||||
// read_stream.pipe(write_stream)
|
||||
}
|
||||
|
||||
stream() {
|
||||
|
Loading…
Reference in New Issue
Block a user