Update comments

This commit is contained in:
Franck Royer 2022-05-27 20:23:43 +10:00
parent d3082c8dd8
commit 7a2dcd9881
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 4 additions and 2 deletions

View File

@ -32,9 +32,11 @@ type FilterCallback = (msg: WakuMessage) => void | Promise<void>;
type UnsubscribeFunction = () => Promise<void>;
/**
* Implements part of the [Waku v2 Filter protocol](https://rfc.vac.dev/spec/12/).
* Implements client side of the [Waku v2 Filter protocol](https://rfc.vac.dev/spec/12/).
*
* WakuFilter can be used as a light filter node, but cannot currently be used as a full node that pushes messages to clients.
* Note this currently only works in NodeJS when the Waku node is listening on a port, see:
* - https://github.com/status-im/go-waku/issues/245
* - https://github.com/status-im/nwaku/issues/948
*/
export class WakuFilter {
private subscriptions: Map<string, FilterCallback>;