registerSaslNegotiator method

void registerSaslNegotiator(
  1. Sasl2AuthenticationNegotiator negotiator
)

Register a SASL negotiator so that we can use that SASL implementation during SASL2.

Implementation

void registerSaslNegotiator(Sasl2AuthenticationNegotiator negotiator) {
  _featureNegotiators.add(negotiator);
  _saslNegotiators
    ..add(negotiator)
    ..sort((a, b) => b.priority.compareTo(a.priority));
}