An AbortController for controlled shutdown of the inbound stream
The raw inbound stream, as retrieved from the callback from libp2p.handle
The raw outbound stream, as retrieved from conn.newStream
Read stream
Write stream -- its preferable to use the write method
Established protocol
Do we have a connection to read from?
Do we have a connection to write on?
Attach a raw inbound stream and setup a read stream
Attach a raw outbound stream and setup a write stream
Closes the open connection to peer
Send a message to this peer.
Throws if there is no stream
to write to available.
Thin wrapper around a peer's inbound / outbound pubsub streams