dispose method

void dispose()

Implementation

void dispose() {
  if (connected) {
    _disconnectFromStomp();
  } else {
    // Make sure we _cleanUp regardless
    _cleanUp();
  }
}