ChainSafe / js-libp2p-gossipsub

TypeScript implementation of Gossipsub
Apache License 2.0
151 stars 43 forks source link

Track publish time after messages are sent #494

Open twoeths opened 7 months ago

twoeths commented 7 months ago

Description

Right now it's not possible to track when messages are sent, although there is a delay at gossip side the publish() function returns immediately, see https://github.com/ChainSafe/lodestar/issues/6596

Solution

Find a way to implement async OutboundStream.push() which only returns when messages are really sent