Connection class
- Available extensions
Constructors
- Connection.new(XmppAccountSettings account)
Properties
- account ↔ XmppAccountSettings
-
getter/setter pair
- authenticated ↔ bool
-
getter/setter pair
- connectionNegotatiorManager ↔ ConnectionNegotiatorManager
-
getter/setter pair
-
connectionStateStream
→ Stream<
XmppConnectionState> -
no setter
- errorMessage ↔ String?
-
getter/setter pair
- fullJid → Jid
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inNonzasStream
→ Stream<
Nonza> -
no setter
-
inStanzasStream
→ Stream<
AbstractStanza?> -
no setter
- lock ↔ Lock
-
getter/setter pair
-
outNonzasStream
→ Stream<
Nonza> -
no setter
-
outStanzasStream
→ Stream<
AbstractStanza> -
no setter
- reconnectionManager ↔ ReconnectionManager?
-
getter/setter pair
- restOfResponse ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverName → Jid
-
no setter
- socket ← XmppWebSocket?
-
no getter
- state → XmppConnectionState
-
no setter
- streamManagementModule ↔ StreamManagementModule?
-
getter/setter pair
Methods
-
authenticating(
) → void -
close(
) → void -
connect(
) → void -
dispose(
) → void - Dispose of the connection so stops all activities and cannot be re-used. For the connection to be garbage collected.
-
doneParsingFeatures(
) → void -
elementHasAttribute(
XmlElement element, XmlAttribute attribute) → bool -
extractWholeChild(
String response) → String -
featureMatcher(
XmlElement element) → bool -
fireNewStanzaEvent(
AbstractStanza stanza) → void -
fullJidRetrieved(
Jid jid) → void -
getMamModule(
) → MessageArchiveManager -
Available on Connection, provided by the MamModuleGetter extension
-
handleCloseState(
) → void -
handleConnectionDone(
) → void -
handleConnectionError(
String error) → void -
handleResponse(
String response) → void -
handleSecuredConnectionDone(
) → void -
handleSecuredConnectionError(
String error) → void -
isAsyncSocketState(
) → bool -
isOpened(
) → bool -
isTlsRequired(
) → bool -
nonzaMatcher(
XmlElement element) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openSocket(
) → Future< void> -
prepareStreamResponse(
String response) → String -
processError(
XmlDocument xmlResponse) → void -
processInitialStream(
XmlElement initialStream) → void -
reconnect(
) → void -
sessionReady(
) → void -
setState(
XmppConnectionState state) → void -
stanzaMatcher(
XmlElement element) → bool -
startMatcher(
XmlElement element) → bool -
startSecureSocket(
) → void -
startTlsFailed(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
write(
dynamic message) → void -
writeNonza(
Nonza nonza) → void -
writeStanza(
AbstractStanza stanza) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
getInstance(
XmppAccountSettings account) → Connection -
removeInstance(
XmppAccountSettings account) → void