Preparing search index...
The search index is not available
Documentation
Documentation
@libp2p/interface-mocks
mockMultiaddrConnection
Function mockMultiaddrConnection
mock
Multiaddr
Connection
(
source
:
Duplex
<
AsyncGenerator
<
Uint8Array
,
any
,
unknown
>
,
AsyncGenerator
<
Uint8Array
,
any
,
unknown
>
,
unknown
>
&
Partial
<
MultiaddrConnection
>
, peerId
:
PeerId
)
:
MultiaddrConnection
Parameters
source:
Duplex
<
AsyncGenerator
<
Uint8Array
,
any
,
unknown
>
,
AsyncGenerator
<
Uint8Array
,
any
,
unknown
>
,
unknown
>
&
Partial
<
MultiaddrConnection
>
peerId:
PeerId
Returns
MultiaddrConnection
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Documentation
@libp2p/interface-
address-
manager -
v3.0.1
@libp2p/interface-
compliance-
tests -
v3.0.7
@libp2p/interface-
connection -
v5.1.1
<internal>
@libp2p/interface-
connection-
compliance-
tests -
v2.0.9
<internal>
@libp2p/interface-
connection-
encrypter -
v4.0.1
<internal>
@libp2p/interface-
connection-
encrypter-
compliance-
tests -
v5.0.1
<internal>
@libp2p/interface-
connection-
gater -
v3.0.1
<internal>
@libp2p/interface-
connection-
manager -
v3.0.1
<internal>
@libp2p/interface-
content-
routing -
v2.1.1
<internal>
@libp2p/interface-
dht -
v2.0.3
<internal>
@libp2p/interface-
keychain -
v2.0.5
<internal>
@libp2p/interface-
keys -
v1.0.8
@libp2p/interface-
libp2p -
v3.2.0
<internal>
@libp2p/interface-
metrics -
v4.0.8
<internal>
@libp2p/interface-
mocks -
v12.0.1
<internal>
@libp2p/interface-
peer-
discovery -
v2.0.0
<internal>
@libp2p/interface-
peer-
discovery-
compliance-
tests -
v2.0.8
<internal>
@libp2p/interface-
peer-
id -
v2.0.2
<internal>
@libp2p/interface-
peer-
info -
v1.0.10
<internal>
@libp2p/interface-
peer-
routing -
v1.1.1
<internal>
@libp2p/interface-
peer-
store -
v2.0.4
<internal>
@libp2p/interface-
pubsub -
v4.0.1
<internal>
@libp2p/interface-
pubsub-
compliance-
tests -
v5.0.7
<internal>
@libp2p/interface-
record -
v2.0.7
<internal>
@libp2p/interface-
record-
compliance-
tests -
v2.0.5
<internal>
@libp2p/interface-
registrar -
v2.0.12
<internal>
@libp2p/interface-
stream-
muxer -
v4.1.2
<internal>
@libp2p/interface-
stream-
muxer-
compliance-
tests -
v7.0.3
<internal>
@libp2p/interface-
transport -
v4.0.3
<internal>
@libp2p/interface-
transport-
compliance-
tests -
v4.0.2
<internal>
@libp2p/interfaces -
v3.3.2
Mock
Network
Components
Mock
Upgrader
Init
mock
Network
connection
Pair
mock
Connection
mock
Connection
Encrypter
mock
Connection
Gater
mock
Connection
Manager
mock
Duplex
mock
Metrics
mock
Multiaddr
Conn
Pair
mock
Multiaddr
Connection
mock
Muxer
mock
Registrar
mock
Stream
mock
Upgrader