node-adbhost icon indicating copy to clipboard operation
node-adbhost copied to clipboard

No read in AdbStream

Open konobi opened this issue 11 years ago • 2 comments

There appears to be nothing defined in _read in AdbStream. Does this indicate that reading from the device was never supported?

konobi avatar Aug 04 '14 01:08 konobi

It is supported: each time device has a packet stream.push() is called here - https://github.com/sidorares/node-adbhost/blob/master/lib/client.js#L89

So you should be able to do .read(size), it's just _read is no-op here (I probably need to add some resume/backpressure handling code instead of no-oping)

sidorares avatar Aug 04 '14 02:08 sidorares

Do you want to try gitter chat? https://gitter.im/sidorares/node-adbhost

sidorares avatar Aug 04 '14 02:08 sidorares