question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"stream" event not firing

See original GitHub issue

Ref #724

I made an example repo: https://github.com/Ponjimon/simple-peer-error

Steps to reproduce:

  1. Create .env file with the content below
  2. Run yarn install
  3. Run yarn start ui and yarn start server parallely
  4. Open two tabs http://localhost:4200
  5. Click the Connect button in one tab, then shortly after in the second.
  6. In the tab where you clicked Connect first, it will show the remote stream, in the other it won’t

You can enable debug logs by doing localStorage.debug = 'app*'

.env content:

SERVER_URL=http://localhost:3333

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vj-abishekcommented, Nov 6, 2020

I also have a similar issue https://github.com/feross/simple-peer/issues/703#issuecomment-719321983

For me, the peers are connected, can able to send data. Only getting an error when I add the stream later.

But it is working as excepted when the peer is initialized with a stream.

0reactions
Mihai-githubcommented, May 20, 2022

any updates? So the issue is that when adding a stream both peers have to emit it right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js stream 'end' event not firing - Stack Overflow
The following data stream does not trigger the 'end' event. The 'data' event is triggered and I can see every data row logged...
Read more >
Twitch.player not firing events (again) - API - Twitch Developer Forums
Here is the code I use. It was working but now no longer reacts to the EVENTS (ONLINE + OFFLINE). Please help, when...
Read more >
Events | Node.js v19.3.0 Documentation
ReadStream emits an event when the file is opened; a stream emits an event whenever data is available to be read. All objects...
Read more >
When Try-Catch Doesn't Catch Errors in Node.js |
The answer to this question is that stream is a subclass of EventEmitter object, which is using an asynchronous callback. Hmm, but what...
Read more >
gerrit stream-events not working on slave - Google Groups
Stream events are fired by the events that cause them, not by data from th db or repos, so there would be no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found