@numaproj/numaflow-js - v0.0.0-alpha.4
    Preparing search index...

    Class AsyncServer

    Async server for map stream operations.

    const server = new mapstream.AsyncServer(async function* (datum) {
    // Yield multiple messages as a stream
    yield new mapstream.Message(Buffer.from('first'));
    yield new mapstream.Message(Buffer.from('second'));
    });
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Start the map stream server.

      Parameters

      • OptionalsockFile: string | null

        Optional custom Unix socket path

      • OptionalinfoFile: string | null

        Optional path for server info file

      Returns Promise<void>

    • Stop the server gracefully.

      Returns void