checkConnected method

void checkConnected()

Implementation

void checkConnected() {
  if (disconnected || disposed) {
    throw Exception("Can not call this after disposed or disconnected");
  }
}