webtorrent / webtorrent-hybrid

WebTorrent (with WebRTC support in Node.js)
https://webtorrent.io
MIT License
519 stars 98 forks source link

Unable to read event under a event. #136

Closed rishi23root closed 2 years ago

rishi23root commented 3 years ago

What version of this package are you using? latest from npm

What operating system, Node.js, and npm version? win10 , v14.16.0, 7.20.3

What happened? unable to use the stream events inside the custom event

files = torrent.files;

WhatsApp Image 2021-08-15 at 16 09 09

under the custom event, we can listen to the stream events but only sometimes, they are not stable don't show any error and most of the time they don't even fire

What did you expect to happen? listen to events even under the other custom events

Are you willing to submit a pull request to fix this bug? IDK

DiegoRBaquero commented 3 years ago

Seems like you have abundant logging, can you post that?

What is being skipped? Where does it freeze?

On 18/08/2021, at 6:11 AM, Rishabh Jain @.***> wrote:

 What version of this package are you using? latest from npm

What operating system, Node.js, and npm version? win10 , v14.16.0, 7.20.3

What happened? unable to use the stream events inside the custom event

files = torrent.files;

under the custom event, we can listen to the stream events but only sometimes, they are not stable don't show any error and most of the time they don't even fire

What did you expect to happen? listen to events even under the other custom events

Are you willing to submit a pull request to fix this bug? IDK

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rishi23root commented 3 years ago

Seems like you have abundant logging what do you mean by that I don't get it - If the server request logging there is none , check this for my aim - https://github.com/rishabhjainfinal/some_random_projects/tree/main/TorrentDownloader

What is being skipped? Where does it freeze? it just doesn't seem to listen to the events inside the custom events result - just end the program with no error which is because there is not an error in the application it just doesn't wait for the listening event

I think this is the issue in the dependency but we need to be sure because today when I was testing it I got this error for the first time (node:12548) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 ready listeners added to [Torrent]. Use emitter.setMaxListeners() to increase limit

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?