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

Fail to close Connection React Native #40

Open
Tomas-caula opened this issue Jan 23, 2024 · 0 comments
Open

Fail to close Connection React Native #40

Tomas-caula opened this issue Jan 23, 2024 · 0 comments

Comments

@Tomas-caula
Copy link

I'm trying to close connection but it's work.
this is my code

`const endCall = () => {
console.log('endCall');
if (socket === undefined || peer === undefined) return;
socket.disconnect();
console.log(peer, 'peer')
peer.destroy();

callState.Feed?.getTracks().forEach((track) => track.stop());
setPeer(undefined);
setCallState({
  PeerID: null,
  SignedIn: false,
  Feed: null,
  Meeting: undefined,
  PVideo: true,
  PAudio: true,
  chatDrawer: false,
});
dispatch({ type: LOADING_CALL, payload: false }); };`

with this code I'm stoping to send my data anyones else but I'm still receiving the audio of the other member of the call.

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

1 participant