kkrpc
    Preparing search index...

    Interface StdioJsonTransportOptions

    Options for the standard JSON-line RPC stdio transport.

    interface StdioJsonTransportOptions {
        lifecycle?: StreamLifecycleLike;
        readable: ReadableLike;
        writable: WritableLike;
        onInvalidFrame(frame: string, error?: unknown): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    lifecycle?: StreamLifecycleLike

    Optional lifecycle event source enabling onClose on the transport.

    readable: ReadableLike

    Readable stream that emits incoming JSON-line data.

    writable: WritableLike

    Writable stream that receives outgoing JSON-line data.

    Methods

    • Observe stdout lines that are not valid RPC frames.

      Parameters

      • frame: string
      • Optionalerror: unknown

      Returns void