Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

fix: remove MPLEX_ prefix from error codes #195

Merged
merged 1 commit into from
Jul 25, 2022

Commits on Jul 22, 2022

  1. fix: remove MPLEX_ prefix from error codes

    To allow detecting the same error condition with different stream
    muxer implementations, remove the `MPLEX_` prefix from the error
    codes thrown by this module.
    
    Also adds a `ERR_DOUBLE_SINK` code when when `.sink` is called
    multiple times instead of only throwing `ERR_SINK_ENDED` when `.sink`
    is called after a stream is closed for reading.
    
    Refs: ChainSafe/js-libp2p-yamux#4
    achingbrain committed Jul 22, 2022
    Configuration menu
    Copy the full SHA
    75f21d8 View commit details
    Browse the repository at this point in the history