clientDisconnected method

  1. @internal
void clientDisconnected()

Called when the client's connection is closed

Implementation

@internal
void clientDisconnected() {
  if (protocolState == KuzzleProtocolState.offline) {
    return;
  }

  protocolState = KuzzleProtocolState.offline;
  emit(ProtocolEvents.DISCONNECT);
}