close method
Implementation
@override
void close() {
if (negotiator != null) {
negotiator!.cleanup();
negotiator = null;
}
_localStream = null;
_remoteStream = null;
if (provider != null) {
provider!.removeConnection(this);
provider = null;
}
if (options != null && options._stream != null) {
options._stream = null;
}
if (!open) return;
open = false;
emit('close');
}