Open Tomas-caula opened 9 months ago
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.
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();
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.