diff --git a/packages/moxxmpp/lib/src/negotiators/handler.dart b/packages/moxxmpp/lib/src/negotiators/handler.dart index b799462..258d67c 100644 --- a/packages/moxxmpp/lib/src/negotiators/handler.dart +++ b/packages/moxxmpp/lib/src/negotiators/handler.dart @@ -18,6 +18,7 @@ typedef SendStreamHeadersFunction = void Function(); /// Return true if the current connection is authenticated. If not, return false. typedef IsAuthenticatedFunction = bool Function(); +/// This class implements the stream feature negotiation for XmppConnection. abstract class NegotiationsHandler { @protected late final Logger log; @@ -92,6 +93,8 @@ abstract class NegotiationsHandler { Future negotiate(XMLNode nonza); } +/// This class implements the stream feature negotiation for usage in client to server +/// connections. class ClientToServerNegotiator extends NegotiationsHandler { ClientToServerNegotiator() : super();