client/src/modules/webrtc/PeerConnection.js
/**
	 * Stop the call
	 * @param {Boolean} initiator is the action taken by user or came in through signal
	 */
Stop the call
@param {Boolean} initiator is the action taken by user or came in through signal
Stop the call @param { Boolean } initiator is the action taken by user or came in through signal
stop(initiator) {
		if (initiator) {
			socket.emit('end-call', this.peerId);
		}
		this.mediaDevice.stop();
		this.pc.close();
		this.off();
		socket.off('ice-candidate', this.addIceCandidate);
		socket.off('remote-description', this.setRemoteDescription);
	}
stop ( initiator ) { if ( initiator ) { socket . emit ( 'end-call' , this . peerId ) ; } this . mediaDevice . stop ( ) ; this . pc . close ( ) ; this . off ( ) ; socket . off ( 'ice-candidate' , this . addIceCandidate ) ; socket . off ( 'remote-description' , this . setRemoteDescription ) ; }
Stop the call
 @param {Boolean} initiator is the action taken by user or came in through signal
Stop the call @param { Boolean } initiator is the action taken by user or came in through signal