Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 766 Bytes

File metadata and controls

35 lines (21 loc) · 766 Bytes

fromStream

Rx.Node.fromStream(stream)

#

Converts a flowing stream to an Observable sequence.

Arguments

  1. stream (Stream): A stream to convert to a observable sequence.

Returns

(Observable): An observable sequence which fires on each 'data' event as well as handling 'error' and 'end' events.

Example

var Rx = require('rx');

var subscription = Rx.Node.fromStream(process.stdin)
    .subscribe(function (x) { console.log(x); });

// => r<Buffer 72>
// => x<Buffer 78>

{% if book.isPdf %}

{% else %}

Location

  • rx.node.js

{% endif %}