lensesio / cypress-websocket-testing

Test WebSocket connections with Cypress
Apache License 2.0
83 stars 11 forks source link

the cy.stream just runs and immediately ends. #14

Closed vince-lynch closed 3 years ago

vince-lynch commented 3 years ago

Hey, for me the cy.stream just runs and immediately ends. It doesn't hold the connection open.

I will continue to look into, but if you have any advice?

Many thanks

dsebastian commented 3 years ago

Hi Vince, It shouldn't close unless your BE is closing the stream. If you add a few more details about your case it would help out:

Is the BE sending a heartbeat? How soon does it close the connection? Can you post a snipet to reproduce the issue?

Also have you tried with the example from the repo? Does it have the same problem?

dsebastian commented 3 years ago

Closing for the moment. Feel free to reopen and ideally provide with an example to reproduce. Thanks.