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

Disconnect the user from the call if 'End call button is pressed`. #1

Open
sridhar-5 opened this issue Jul 12, 2021 · 4 comments
Open
Assignees
Labels
good first issue Good for newcomers hacktoberfest This issue will be considered towards Hacktoberfest.

Comments

@sridhar-5
Copy link
Owner

I tried in the formal way of adding the event listener to the button and triggered DisconnectFromTheCall() when clicked. The function has peer.disconnect() method which is the formal way of disconnecting the user from the room. but that doesn't seem to workout.

This is the link to the particular file

peerjs documentation

@cyberwizard1001
Copy link

The disconnect function is empty...?

@cyberwizard1001
Copy link

Try peer.close()?

@sridhar-5
Copy link
Owner Author

I tried using peer.disconnect() didn't work. so erased the whole function to open an issue.

@sridhar-5
Copy link
Owner Author

sridhar-5 commented Jul 13, 2021

Try peer.close()?

Just tried it. didn't work.

@sridhar-5 sridhar-5 added good first issue Good for newcomers help wanted Extra attention is needed labels Jul 13, 2021
@sridhar-5 sridhar-5 added hacktoberfest This issue will be considered towards Hacktoberfest. and removed help wanted Extra attention is needed labels Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest This issue will be considered towards Hacktoberfest.
Projects
None yet
Development

No branches or pull requests

2 participants