100mslive / 100ms-web

A conferencing and streaming UI built with 100ms SDK.
https://examples-videoconferencing.app.100ms.live/preview/tmz-qdi-cyp
MIT License
197 stars 162 forks source link

Websocket connection lost #686

Closed longvision closed 9 months ago

longvision commented 10 months ago

Describe the bug Websocket connection being lost

Project react project sample adapted to next.js

To Reproduce Steps to reproduce the behavior:

  1. After leaving the previewScreen.jsx.
  2. When joining entering the conference in the react app sample.
  3. The websocket connection is lost.

Expected behavior Should connect to the room.

Screenshots Screenshot 2023-11-17 080943

Desktop (please complete the following information):

Additional context Started today

Aditional error message in the console as well:

[HMSPerformanceTiming] join-room-654940e77978e20a415f6dc0 DOMException: Failed to execute 'measure' on 'Performance': The mark 'join-room-654940e77978e20a415f6dc0' does not exist.

rk 'join-room-654940e77978e20a415f6dc0' does not exist. at c.log (webpack-internal:///./node_modules/@100mslive/hms-video/dist/index.js:84:4120) at c.timeEnd (webpack-internal:///./node_modules/@100mslive/hms-video/dist/index.js:84:3690) at Pr.eval (webpack-internal:///./node_modules/@100mslive/hms-video/dist/index.js:135:157726) at Generator.next () at s (webpack-internal:///./node_modules/@100mslive/hms-video/dist/index.js:60:794)

Context: Solution was adapted to run on next.js and was running accordingly until yesterday.

longvision commented 10 months ago

Never Mind, I have found the problem.

I had an extra hsmActions.leave() inside the BackSwipe useEffect return function. It was forcing the app to exit the room after entering in it.

longvision commented 9 months ago

code fixed on project end