close method

  1. @mustCallSuper
void close()

Called when the client's connection is closed

Implementation

@mustCallSuper
void close() {
  if (protocolState == KuzzleProtocolState.offline) {
    return;
  }

  if (protocolState == KuzzleProtocolState.connected) {
    clientDisconnected();
    return;
  }
  abortConnection = true;
}