close method
void
close()
Closes the link by disconnecting from the broker. You can call connect again once you have closed a link.
Implementation
void close() {
_connectedCompleter = null;
if (link != null) {
link?.close();
link = null;
_initialized = false;
_reconnecting = true;
}
}