You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Alice connects to a peer that support protocol /foo/1.0.0, Alice wants to automatically initiate the message request for said protocol.
Alice dials Bob, once done, Alice triggers the identify protocol with Bob.
Until the identify protocol is done, Alice does not know what protocol Bob implements.
On Alice side, there is no event emitted once the identify protocol is done.
All we can do is check that Alice's peerStore now contains Bob's protocols.
I would like to propose emitting an event peer:identify once the identify protocol is done and the peer's protocols are now.
Please let me know your thought, am I missing a more obvious solution to my issue?
The text was updated successfully, but these errors were encountered:
Hello @D4nte
Once your peer establishes a connection with another peer and the identify protocol finishes, the peer protocols are stored in the Protobook. You can listen for these changes:
Type: Question/Feature
Severity: Medium
Description:
When Alice connects to a peer that support protocol
/foo/1.0.0
, Alice wants to automatically initiate the message request for said protocol.Alice dials Bob, once done, Alice triggers the identify protocol with Bob.
Until the identify protocol is done, Alice does not know what protocol Bob implements.
On Alice side, there is no event emitted once the identify protocol is done.
All we can do is check that Alice's
peerStore
now contains Bob's protocols.I would like to propose emitting an event
peer:identify
once the identify protocol is done and the peer's protocols are now.Please let me know your thought, am I missing a more obvious solution to my issue?
The text was updated successfully, but these errors were encountered: