constprotocol: ProtocolCodec = { code:2059, name:'custom-protocol', size:V // V means variable length, can also be 0, a positive integer (e.g. a fixed // length or omitted }
registry.addProtocol(protocol)
// does not throw UnknownProtocolError multiaddr(maWithCustomTuple)
// protocols can also be removed registry.removeProtocol(protocol.code)
A standard way to represent addresses that
Example
Example: Adding custom protocols
To add application-specific or experimental protocols, add a protocol codec to the protocol registry: