disconnectConnection method

  1. @mustCallSuper
void disconnectConnection(
  1. Connection connection
)

Disconnects a connection.

Implementation

@mustCallSuper
void disconnectConnection(Connection connection) {
  for (var i = 0; i < 10; i++) {
    send(Disconnect(), connection);
  }
  _cleanupConnection(connection);
}