Class MultiLineCollector

Collect lines from the server.

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

Properties

additional: string[]

Append lines with these commands to buffer.

await: string

Wait for this command from the server.

buffer: IIRCLine[] = []

Buffer list of additional data.

match?: ((line: IIRCLine) => boolean)

Type declaration

Methods

  • Line matching commands in additional will call this function. Use it to populate the buffer.

    Parameters

    Returns void

  • Resolve the collector.

    Parameters

    • line: IIRCLine

      The line resolving to await

    • data: IIRCLine[]

      Additional data in buffer, usually only present when using additional

    Returns void

Generated using TypeDoc