Disconects an active webrtc connection to Diarupt Engine.
Copy
import {disconnect} from 'diarupt';disconnect();
The disconnect function is used to disconnect an active webrtc connection to Diarupt Engine.
you need to have an active connection to use the disconnect function, although if you don’t it silently fails.