CleverProgrammers / nodejs-zoom-clone

848 stars 483 forks source link

duplication of joining new user-Reg #31

Open Boopalan-M opened 3 years ago

Boopalan-M commented 3 years ago

In localhost when the new user connects it connects perfectly. But when i host in server the video of the new users gets duplicated. How can i resolve this issue.

Thanks in advance!!!!!!!

wasifAL commented 3 years ago

You need to host it with https configuration otherwise websocket doesn't connect though it will work in localhost.

Boopalan-M commented 3 years ago

Thank you for your reply !!!!! But my doubt is

It works in server also but the video of new user getting duplicated twice

For example if A is the host B wants to connect means the video of B was show to A and the video of a was show to B. But the video of B was show 2video to A and viceversa.

How can i resolve this .. Thanks in advance

You need to host it with https configuration otherwise websocket doesn't connect though it will work in localhost.

wasifAL commented 3 years ago

I haven't tried with multiple device so can't be of much help. I just tried in local to see how the socket works. If I find any work around I will let you know here.

Boopalan-M commented 3 years ago

I haven't tried with multiple device so can't be of much help. I just tried in local to see how the socket works. If I find any work around I will let you know here.

Thank youu!!!!!!!!!

anujmittal2308 commented 2 years ago

https://stackoverflow.com/questions/72003682/cant-fix-expresspeerserver-is-not-a-function-in-server-js