libp2p
    Preparing search index...

    Interface MessageStreamEvents

    interface MessageStreamEvents {
        close: StreamCloseEvent;
        drain: Event;
        end: Event;
        idle: Event;
        message: StreamMessageEvent;
        remoteCloseWrite: Event;
    }
    Index

    The underlying resource is closed and the stream cannot be used to send any more data.

    When the .error field is set, the local property of the event will be true value if the .abort was invoked, otherwise it means a remote error occurred and the peer sent a reset signal.

    drain: Event

    The local send buffer has emptied and the stream may be written to once more, unless it is currently closing.

    end: Event

    No more data from the remote will be delivered, so resources tied to reading can be released.

    Emitted at most once, when the read buffer empties after the remote closes their writable end, or when .abort or Stream.closeRead close the readable end, discarding anything unread. Consumers that may attach after it has fired should read readableEnded rather than wait for it.

    Unread data defers it, so a stream with no 'message' listener, or one left paused, may close without ever emitting it. Use 'close' as the unconditional signal that a stream is finished.

    idle: Event

    The outgoing write queue emptied - there are no more bytes queued for sending to the remote end of the stream.

    Data was received from the remote end of the message stream

    remoteCloseWrite: Event

    Where the stream implementation supports half-closing, it may emit this event when the remote end of the stream closes it's writable end.

    The stream can still be written to, if it has not been closed at this end.