# JS-IPFS Events in Typescript

**URL:** <https://discuss.ipfs.tech/t/js-ipfs-events-in-typescript/11013>\
**Category:** Help\
**Tags:** js-ipfs\
**Created:** [April 22, 2021, 5:45pm UTC](https://discuss.ipfs.tech/t/js-ipfs-events-in-typescript/11013 "2021-04-22T17:45:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukebelbina](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/lukebelbina/32/4945_2.png) [@lukebelbina](https://discuss.ipfs.tech/u/lukebelbina)\
**Post date:** [April 22, 2021, 5:45pm UTC](https://discuss.ipfs.tech/t/js-ipfs-events-in-typescript/11013/1 "2021-04-22T17:45:03Z")

</div>

I am working through various tutorials / documentation for a TS project using JS-IPFS.

I can’t seem to figure out or find anything on how to listen to events. For example I’ve seen things like:

> const node = await IPFS.create(ipfsOptions);  
> node.on(“someevent”, …) // on doesn’t exist on the ipfs type  
> node.libp2p.on(“peer:connect”, …); // libp2p isn’t on the ipfs type either

Any guidance on how to listen to js-ipfs events in Typescript?
