"stream" event not firing
See original GitHub issueRef #724
I made an example repo: https://github.com/Ponjimon/simple-peer-error
Steps to reproduce:
- Create
.env
file with the content below - Run
yarn install
- Run
yarn start ui
andyarn start server
parallely - Open two tabs
http://localhost:4200
- Click the
Connect
button in one tab, then shortly after in the second. - 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:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
any updates? So the issue is that when adding a stream both peers have to emit it right?