Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to the same room #68

Open
REUZEE opened this issue Aug 14, 2020 · 7 comments
Open

Unable to connect to the same room #68

REUZEE opened this issue Aug 14, 2020 · 7 comments

Comments

@REUZEE
Copy link

REUZEE commented Aug 14, 2020

I download the code and run the project locally followed the instructions. But one room could only accommodate one user. The user who accesses the same url will be seperated. And the log would print :
PS D: decentral ized-video-chat -master> npm start
video-chat201. 0.0 start D: dachuang decentralized- video-chat- master
node server. js
http://localhost:3000
darkfox: A client joined the room
darkfox: Broadcasting ready message
darkfox: Received token request
darkfox: Error: The requested resource 2010-04-01 Accounts AC/Tokens. json was not found

@Chaphasilor
Copy link
Collaborator

Do you have your STUN server (e.g. Twilio) set up correctly?

@REUZEE
Copy link
Author

REUZEE commented Aug 17, 2020

Do you have your STUN server (e.g. Twilio) set up correctly?

I am sorry. I am not sure what's the stun server you said. I have signed up for free twilio account and got Account SID and Auth Token from the Twillio console and filled in credentials in the .env file. Then I successfully ran ngrok. Is it enough?

@Chaphasilor
Copy link
Collaborator

@REUZEE

Alright, if you set up twilio inside the .env file your STUN server should be configured correctly.
For local testing you don't nedd ngrok yet, try without it first in order to minimize error causes. Just run npm start and then navigate to localhost:3000 and join a room, after you've done that copy the url of the room and open it in another tab in the same browser (beware of acoustic feedback).

If this doesn't work, I can investigate further :)

@agnelvishal
Copy link

agnelvishal commented Sep 30, 2020

Check this line

} else if (numClients === 1) {

Only 2 people can be present in a room as per the code mentioned

@Chaphasilor
Copy link
Collaborator

Exactly. However, OPs issue is that the second client can't join the room :)

@SaeedehAf
Copy link

Any update on this? I have the same issue. The second client can not join and it seems another room is being initiated. The second room also is waiting for someone to join.

@Chaphasilor
Copy link
Collaborator

@SaeedehAf Development of this project is halted for now. Please check the pinned issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants