mirror of https://github.com/waku-org/js-waku.git
Add filter to `dial`
This commit is contained in:
parent
8aa966c2f6
commit
e3015abce9
|
@ -265,6 +265,9 @@ export class Waku {
|
|||
if (_protocols.includes(Protocols.LightPush)) {
|
||||
codecs.push(LightPushCodec);
|
||||
}
|
||||
if (_protocols.includes(Protocols.Filter)) {
|
||||
codecs.push(FilterCodec);
|
||||
}
|
||||
|
||||
return this.libp2p.dialProtocol(peer, codecs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue