ChatConnection class
Real-time support chat, on the native SDK's connection: new messages, typing indicators and conversation changes as they
happen, for the conversations you join (and updates about all of the user's own conversations). Messages are still sent
with BeeAppie.client.sendMessage, which pushes them here. Get it with BeeAppie.chat().
BeeAppie disconnects it in the background and reconnects it in the foreground; on ChatConnectionChanged true, fetch
what you show again (e.g. getMessages(id, since: …)).
Constructors
Properties
-
events
→ Stream<
ChatEvent> -
Every event from now on, for as long as it is listened to.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isConnected
→ Future<
bool> -
Whether the connection is up.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
joinConversation(
String conversationId) → Future< void> - Receives messages and typing in this conversation from now on; kept across reconnections.
-
leaveConversation(
String conversationId) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendTyping(
String conversationId, {required bool isTyping}) → Future< void> - Tells the team the user is (or stopped) typing. Only a hint: TypingSender sends it at a sensible rate.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited