matchesFeature method

  1. @override
bool matchesFeature(
  1. List<XMLNode> features
)
override

Returns true if a feature in features, which are the children of the <stream:features /> nonza, can be negotiated. Otherwise, returns false.

Implementation

@override
bool matchesFeature(List<XMLNode> features) {
  // Only do SASL2 when the socket is secure
  return attributes.getSocket().isSecure() && super.matchesFeature(features);
}