closeRemote method
void
closeRemote()
inherited
Closes the remote connection if active.
Implementation
void closeRemote() {
_syncMetricsRemote(remotePort, metricsId);
final conn =
_receiverConnections[this] as FlowControlledRemoteConnection<T>?;
conn?.close();
_receiverConnections[this] = null;
}