-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Implement the jsipfs ping
command
#928
Comments
@diasdavid I can take a stab at this |
Thank you @trendsetter37 🌟 |
Hey @diasdavid, Thanks a lot for the IPFS project. I really enjoyed reading about the project and have been blown away with the vision <3. I gave this issue a shot and got the ping implementing but had few implementation detail questions
Once, these doubts are cleared I would like to submit a PR if needed. Thanks :) |
Thank you ❤️❤️❤️
YEAAS, Welcome! :)
You should not have to change the implementation. The implementation gives you a event emitter and a stop call. You can get the
Return the ping object. See usage at https://github.com/libp2p/js-libp2p-ping#usage |
My second question was regarding js-ipfs library. Shouldn't the ipfs.ping() implemented in link take in peerId and options? In the README it indicates there are no parameters. Just to confirm this ipfs.ping() call would return the ping object and be used by jsipfs ping implementation in commands folder to console the ping results? |
I see where the confusion is from. The README has just a reference to the func, but it is not yet "documented". The func full definition should be added to https://github.com/ipfs/interface-ipfs-core/blob/master/SPEC/MISCELLANEOUS.md and then that table of contents should be updated. Sorry for the confusion. I would love some help in going through all the methods and making sure that docs are up to date. //cc @hacdias |
No worries. Just wanted to clear that out. I will send in a PR for the ping implementation and also will update the doc with it. :) |
Work happening at #1202 :) |
Work happening on #1299 now. |
* feat: implement `ipfs ping` flags #928 * feat: first shot at ping implementaion * fix: ETOOMANYSTREAMS 😢 * chore: cleanup on the ping component * chore: ping component linting * chore: bump js-ipfs-api and fix http ping validation * chore: add test to ping cli command * chore: add ping cli test * chore: refactor ping component and some cleanup * chore: add tests to the ping http API * fix: no need to check for peerRouting method in ping * chore: add tests for ping core functionality
* feat: implement `ipfs ping` flags #928 * feat: first shot at ping implementaion * fix: ETOOMANYSTREAMS 😢 * chore: cleanup on the ping component * chore: ping component linting * chore: bump js-ipfs-api and fix http ping validation * chore: add test to ping cli command * chore: add ping cli test * chore: refactor ping component and some cleanup * chore: add tests to the ping http API * fix: no need to check for peerRouting method in ping * chore: add tests for ping core functionality
* feat: implement `ipfs ping` flags #928 * feat: first shot at ping implementaion * fix: ETOOMANYSTREAMS 😢 * chore: cleanup on the ping component * chore: ping component linting * chore: bump js-ipfs-api and fix http ping validation * chore: add test to ping cli command * chore: add ping cli test * chore: refactor ping component and some cleanup * chore: add tests to the ping http API * fix: no need to check for peerRouting method in ping * chore: add tests for ping core functionality
Following: https://github.com/ipfs/js-ipfs/pull/925/files
We want to support the same command that go-ipfs supports:
jsipfs ping
.From go-ipfs:
The text was updated successfully, but these errors were encountered: