Const
Matches WebRTC-direct addresses.
import { multiaddr } from '@multiformats/multiaddr'import { WebRTCDirect } from '@multiformats/multiaddr-matcher'WebRTCDirect.matches(multiaddr('/ip4/123.123.123.123/tcp/1234/p2p/QmFoo/webrtc-direct/certhash/u....')) // true Copy
import { multiaddr } from '@multiformats/multiaddr'import { WebRTCDirect } from '@multiformats/multiaddr-matcher'WebRTCDirect.matches(multiaddr('/ip4/123.123.123.123/tcp/1234/p2p/QmFoo/webrtc-direct/certhash/u....')) // true
Matches WebRTC-direct addresses.