-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use filter protocol #301
Use filter protocol #301
Conversation
method: waku_message.DecryptionMethod.Symmetric, | ||
contentTopics: [contentTopic], | ||
}) | ||
|
||
const unsubscribe = await this.client.waku.filter.subscribe( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: see stream limits and consider changing js-waku/go-waku's so one content topic can be unsubscribed from a stream serving many other topics without service interruption
} | ||
|
||
private unobserveChatMessages = ( | ||
private unobserveChatMessages = async ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: await where called
@@ -52,7 +54,8 @@ export class Community { | |||
this.client.waku.store.addDecryptionKey(this.symmetricKey, { | |||
contentTopics: [this.contentTopic], | |||
}) | |||
this.client.waku.relay.addDecryptionKey(this.symmetricKey, { | |||
// this.client.waku.relay.addDecryptionKey(this.symmetricKey, { | |||
this.client.waku.filter.addDecryptionKey(this.symmetricKey, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: explain why to filter now and when to relay again
}, | ||
// todo: don't relay | ||
relayKeepAlive: 15, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: use diff pinging
relayKeepAlive: 15, | ||
libp2p: { config: { pubsub: { enabled: true, emitSelf: true } } }, | ||
}) | ||
await waku.waitForRemotePeer() | ||
console.log('waku:ready', new Date().toISOString()) | ||
const wakuDisconnectionTimer = setInterval(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: see if works for Filter too
Closed by 2d36345 |
No description provided.