dispose method Null safety
override
this is called internally whenever JanusSession or JanusPlugin is disposed for cleaning up of active connections either polling or websocket connection.
Implementation
void dispose() {
if (channel != null && sink != null) {
sink?.close();
isConnected = false;
}
}