From 47d821c02ea669def7fb63a39a03e3d9430650ec Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Mon, 3 Apr 2023 16:17:09 +0200 Subject: [PATCH] docs(core): Add comments to NegotiationsHandler --- packages/moxxmpp/lib/src/negotiators/handler.dart | 3 +++ 1 file changed, 3 insertions(+) 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();