Add filter to `dial`

This commit is contained in:
Franck Royer 2022-05-26 14:48:33 +10:00
parent 8aa966c2f6
commit e3015abce9
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}