package
0.41.0
Repository: https://github.com/libp2p/go-libp2p.git
Documentation: pkg.go.dev

# Functions

NewAddr creates an Addr with `ws` scheme (insecure).
NewAddrWithScheme creates a new Addr using the given host string.
NewConn creates a Conn given a regular gorilla/websocket Conn.
WithTLSClientConfig sets a TLS client configuration on the WebSocket Dialer.
WithTLSConfig sets a TLS configuration for the WebSocket listener.

# Variables

GracefulCloseTimeout is the time to wait trying to gracefully close a connection before simply cutting it.
WsFmt is multiaddr formatter for WsProtocol.

# Structs

Addr is an implementation of net.Addr for WebSocket.
Conn implements net.Conn interface for gorilla/websocket.
WebsocketTransport is the actual go-libp2p transport.

# Type aliases