docs(core): Add comments to NegotiationsHandler

This commit is contained in:
PapaTutuWawa 2023-04-03 16:17:09 +02:00
parent 355d580a9a
commit 47d821c02e

View File

@ -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<void> negotiate(XMLNode nonza);
}
/// This class implements the stream feature negotiation for usage in client to server
/// connections.
class ClientToServerNegotiator extends NegotiationsHandler {
ClientToServerNegotiator() : super();