Categorygithub.com/jc-lab/libp2p-websocket-path
modulepackage
0.2.1
Repository: https://github.com/jc-lab/libp2p-websocket-path.git
Documentation: pkg.go.dev

# README

go-libp2p-websocket-path

libp2p websocket transport with path

Transport:

libp2p.Transport(path_websocket.New)

Connect:

addr, err := websocket_path.NewMultiaddr("/dns4/your.ipfs.server.io/tcp/443/tls/ws+path/(/ipfs/ws)/p2p/12D3KooXXXXXXXXXX")
info, err := peer.AddrInfoFromP2pAddr(addr)
lite.Bootstrap([]peer.AddrInfo{*info})

License

MIT License

# Functions

No description provided by the author
No description provided by the author
NewConnWithAddr creates a Conn given a regular gorilla/websocket Conn.
NewLocalAddrWithScheme creates a new Addr using the given host string.
No description provided by the author
No description provided by the author
WithTLSClientConfig sets a TLS client configuration on the WebSocket Dialer.
WithTLSConfig sets a TLS configuration for the WebSocket listener.

# Constants

No description provided by the author

# 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.
No description provided by the author
WebsocketTransport is the actual go-libp2p transport.

# Type aliases

No description provided by the author