Private
#privatePrivate
Readonly
_inboundAn AbortController for controlled shutdown of the inbound stream
Private
Optional
_rawThe raw inbound stream, as retrieved from the callback from libp2p.handle
Private
Optional
_rawThe raw outbound stream, as retrieved from conn.newStream
Private
closedReadonly
idOptional
inboundRead stream
Private
Readonly
logOptional
outboundWrite stream - it's preferable to use the write method
Readonly
protocolDo we have a connection to read from?
Do we have a connection to write on?
Optional
options: boolean | AddEventListenerOptionsAttach a raw inbound stream and setup a read stream
Attach a raw outbound stream and setup a write stream
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Optional
listener: null | EventHandler<PeerStreamEvents[K]>Optional
options: boolean | EventListenerOptionsOptional
detail: CustomEventInit<Detail>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