Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Use filter protocol #301

wants to merge 2 commits into from

Conversation

felicio
Copy link
Collaborator

@felicio felicio commented Aug 1, 2022

No description provided.

method: waku_message.DecryptionMethod.Symmetric,
contentTopics: [contentTopic],
})

const unsubscribe = await this.client.waku.filter.subscribe(
Copy link
Collaborator Author

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 (
Copy link
Collaborator Author

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, {
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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 () => {
Copy link
Collaborator Author

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

@prichodko prichodko mentioned this pull request Sep 19, 2022
@felicio felicio mentioned this pull request Oct 5, 2022
@felicio
Copy link
Collaborator Author

felicio commented Nov 15, 2022

Closed by 2d36345

@felicio felicio closed this Nov 15, 2022
@felicio felicio self-assigned this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant