How to use the mafmt.WebRTCStar function in mafmt

To help you get started, we’ve selected a few mafmt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github libp2p / js-libp2p-webrtc-star / src / webrtc-star / index.js View on Github external
return multiaddrs.filter((ma) => {
      return mafmt.WebRTCStar.matches(ma)
    })
  }
github libp2p / js-libp2p-webrtc-star / src / index.js View on Github external
return multiaddrs.filter((ma) => {
      if (ma.protoCodes().includes(CODE_CIRCUIT)) {
        return false
      }

      return mafmt.WebRTCStar.matches(ma)
    })
  }
github validitylabs / hopr / src / network / signallingServers.js View on Github external
.filter((multiaddr) =>
                        mafmt.WebRTCStar.matches(multiaddr) &&
                        multiaddr.getPeerId() === peerIdStrings[toDelete])
                    .forEach((multiaddr) =>

mafmt

A multiaddr validator

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis