// Example - Link readables to one readable streamconst 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(() => {
returnnew FileSource({host: "localhost", path: "/c.log"}).createReadableStream();
});
ms.createReadableStream().on("data", (chunk) =>console.log(chunk));
// 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));