libp2p / js-libp2p-pubsub-peer-discovery

A js-libp2p module that uses pubsub for mdns like peer discovery
Other
11 stars 6 forks source link

Message event causes crash when using topic discovery option. #140

Open sleep9 opened 9 months ago

sleep9 commented 9 months ago

When I supply a topic to the discovery options, message events cause a crash (Im guessing something to do with protobuf)

pubsubPeerDiscovery({ interval: 10000, //topics: ['news'], <-- if I uncomment this. listenOnly: false })

console output /node_modules/protons-runtime/src/utils/reader.ts:9 return RangeError(index out of range: ${reader.pos} + ${writeLength ?? 1} > ${reader.len})