You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in go-libp2p-muxer, it allows using custom protocol name. Adding a similar pub fn set_protocol to MplexConfig to connect to go nodes with custom protocol.
// Muxer configures libp2p to use the given stream multiplexer (or stream// multiplexer constructor).//// Name is the protocol name.//// The transport can be a constructed mux.Transport or a function taking any// subset of this libp2p node's:// * Peer ID// * Host// * Network// * PeerstorefuncMuxer(namestring, tptinterface{}) Option {
mtpt, err:=config.MuxerConstructor(tpt)
err=traceError(err, 1)
returnfunc(cfg*Config) error {
iferr!=nil {
returnerr
}
cfg.Muxers=append(cfg.Muxers, config.MsMuxC{MuxC: mtpt, ID: name})
returnnil
}
}
The text was updated successfully, but these errors were encountered:
in go-libp2p-muxer, it allows using custom protocol name. Adding a similar pub fn set_protocol to MplexConfig to connect to go nodes with custom protocol.
The text was updated successfully, but these errors were encountered: