libp2p
    Preparing search index...

    Class AbstractStreamMuxer<MuxedStream>Abstract

    A libp2p stream muxer

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    earlyStreams: MuxedStream[]
    log: Logger
    maxEarlyStreams: number
    protocol: string

    The protocol used to select this muxer during connection opening

    The status of the muxer

    streamOptions?: StreamOptions
    streams: MuxedStream[]

    A list of streams that are currently open

    Methods

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().

      MDN Reference

      Parameters

      Returns boolean

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().

      MDN Reference

      Parameters

      Returns boolean

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.

      MDN Reference

      Type Parameters

      • K extends "stream"

      Parameters

      Returns void