IvsChatSession class
IVS Chat over WebSocket with automatic reconnect while the session is active.
resolveChatToken must return a new token from CreateChatToken whenever called;
tokens are short-lived and each connection (including reconnects) should use a fresh one.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSocketOpen → bool
-
Whether the socket is currently usable for sendMessage.
no setter
-
lines
→ Stream<
IvsChatLine> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
connect(
{required String region, required Future< String> resolveChatToken()}) → Future<void> - Starts (or restarts) the chat connection. Safe to call again after failures.
-
dispose(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendMessage(
String text) → Future< bool> - Sends a chat message; waits for a live socket and retries briefly if needed.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited