Const
Matches WebSocket addresses.
import { multiaddr } from '@multiformats/multiaddr'import { WebSockets } from '@multiformats/multiaddr-matcher'WebSockets.matches(multiaddr('/ip4/123.123.123.123/tcp/1234/ws')) // true Copy
import { multiaddr } from '@multiformats/multiaddr'import { WebSockets } from '@multiformats/multiaddr-matcher'WebSockets.matches(multiaddr('/ip4/123.123.123.123/tcp/1234/ws')) // true
Matches WebSocket addresses.