• Preparing search index...
  • The search index is not available
@libp2p/multistream-select - v3.1.9
  • @libp2p/multistream-select - v3.1.9
  • lazySelect

Function lazySelect

  • lazySelect(stream: Duplex<Source<Uint8Array>, Source<Uint8Array>, unknown>, protocol: string): ProtocolStream<Uint8Array>
  • Lazily negotiates a protocol.

    It does not block writes waiting for the other end to respond. Instead, it simply assumes the negotiation went successfully and starts writing data.

    Use when it is known that the receiver supports the desired protocol.

    Parameters

    • stream: Duplex<Source<Uint8Array>, Source<Uint8Array>, unknown>
    • protocol: string

    Returns ProtocolStream<Uint8Array>

    • Defined in select.ts:116
  • lazySelect(stream: Duplex<Source<Uint8Array | Uint8ArrayList>, Source<Uint8Array | Uint8ArrayList>, unknown>, protocol: string): ProtocolStream<Uint8ArrayList, Uint8ArrayList | Uint8Array>
  • Parameters

    • stream: Duplex<Source<Uint8Array | Uint8ArrayList>, Source<Uint8Array | Uint8ArrayList>, unknown>
    • protocol: string

    Returns ProtocolStream<Uint8ArrayList, Uint8ArrayList | Uint8Array>

    • Defined in select.ts:117

Settings

Member Visibility

Theme

Modules

  • @libp2p/multistream-select - v3.1.9
    • ByteArrayInit
    • ByteListInit
    • MultistreamSelectInit
    • ProtocolStream
    • PROTOCOL_ID
    • handle
    • lazySelect
    • select