Skip to main content

read_stream_call

Function read_stream_call 

Source
pub fn read_stream_call(
    recv: &Value,
    method: &str,
    args: Vec<Value>,
) -> Result<Value, String>
Expand description

fs.ReadStream instance dispatch (tag FSReadStream). The EventEmitter methods (on, once, emit, …) delegate to events, as every other emitter-backed instance does; this covers the stream-only surface. Nothing routed them here, so fs.createReadStream(p).on('data', …) threw on is not a function.