Options
All
  • Public
  • Public/Protected
  • All
Menu
// Example - Link readables to one readable stream
const stream1 = new HttpSource({host: "localhost", path: "/a.log"}).createReadableStream();
const stream2 = new FileSource({host: "localhost", path: "/b.log"}).createReadableStream();
const ms = new MultiSource().add(stream1).add(stream2).add(() => {
 return new FileSource({host: "localhost", path: "/c.log"}).createReadableStream();
});
ms.createReadableStream().on("data", (chunk) => console.log(chunk));

Hierarchy

Index

Constructors

constructor

Methods

add

createReadableStream

createWritableStream