An implementation of the js-libp2p connection. Any libp2p transport should use an upgrader to return this connection.
Reference to the close function of the raw connection
Reference to the getStreams function of the muxer
Reference to the new stream function of the multiplexer
Connection metadata.
Connection identifier.
Observed multiaddr of the local peer
Local peer id.
Connection streams registry
Observed multiaddr of the remote peer
Remote peer id.
User provided tags
Get connection metadata
Get all the streams of the muxer.
Add a stream when it is opened to the registry.
a muxed stream
Close the connection.
Create a new stream from this connection
intended protocol for the stream
} with muxed+multistream-selected stream and selected protocol
Remove stream registry after it is closed.
identifier of the stream
Checks if the given value is a Connection
instance.
An implementation of the js-libp2p connection. Any libp2p transport should use an upgrader to return this connection.