Function libp2p::build_tcp_ws_pnet_noise_mplex_yamux
source · [−]pub fn build_tcp_ws_pnet_noise_mplex_yamux(
keypair: Keypair,
psk: PreSharedKey
) -> Result<Boxed<(PeerId, StreamMuxerBox)>>
Expand description
Builds an implementation of Transport
that is suitable for usage with the Swarm
.
The implementation supports TCP/IP, WebSockets over TCP/IP, noise as the encryption layer, and mplex or yamux as the multiplexing layer.