Closed dmotz closed 3 months ago
This is a bug report
The current docs indicate this way of subscribing to a topic:
const subscription = await node.filter.createSubscription() await subscription.subscribe([decoder], callback)
However with the current version of the lib, the internal function shardInfoToPubsubTopics() throws:
shardInfoToPubsubTopics()
TypeError: Cannot use 'in' operator to search for 'contentTopics' in undefined as its argument shardInfo is undefined.
TypeError: Cannot use 'in' operator to search for 'contentTopics' in undefined
shardInfo
This code worked in previous versions.
I see there is a pubsubTopics field when creating the node but the use case here is dynamic topics not known at the time of constructing the node.
pubsubTopics
Hi @dmotz. That's a good point and we need to update docs to facilitate the change we released couple of weeks ago.
Here is PR with updated docs https://github.com/waku-org/docs.waku.org/pull/199
This is a bug report
Problem
The current docs indicate this way of subscribing to a topic:
However with the current version of the lib, the internal function
shardInfoToPubsubTopics()
throws:TypeError: Cannot use 'in' operator to search for 'contentTopics' in undefined
as its argumentshardInfo
is undefined.This code worked in previous versions.
I see there is a
pubsubTopics
field when creating the node but the use case here is dynamic topics not known at the time of constructing the node.