shresthagrawal/learnp2p

Refactor all the code to latest version of js-libp2p

Opened this issue · 5 comments

Refactor all the code to latest version of js-libp2p

I have taken this up and refactoring the code using js-libp2p v0.27.4.

@prateekreddy awesome! Looking forward for your PR!

@shresthagrawal In chapter 6, currently start and stop events are being used to subscribe and unsubscribe from he pubsub. But in the latest version these events are not present anymore. I was wondering if you would want to structure it in a different way. I have upgraded the libp2p version for the first 5 chapters.

@prateekreddy yaah sure go for it. I can see in your branch that you have structured it such that everything which was previously under start event callback is now under the below the await libp2p.start().

Kudos for you progress! Nice work
Can you create a PR of the your work with WIP in description. It's easier to track progress if the issue for everyone who checks out the repo.

Will be fixed by #11