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(write_stream)
|
||||||
console.log('writing buffer', buffer.toString(), buffer)
|
console.log('writing buffer', buffer.toString(), buffer)
|
||||||
|
|
||||||
const read_stream = new Readable()
|
write_stream.push(buffer)
|
||||||
read_stream.push(buffer.toString())
|
write_stream.push(null)
|
||||||
read_stream.push(null)
|
|
||||||
read_stream.pipe(write_stream)
|
// const read_stream = new Readable()
|
||||||
|
// read_stream.push(buffer, 'utf8')
|
||||||
|
// read_stream.push(null)
|
||||||
|
// read_stream.pipe(write_stream)
|
||||||
}
|
}
|
||||||
|
|
||||||
stream() {
|
stream() {
|
||||||
|
Loading…
Reference in New Issue
Block a user