High-level text/JSON helpers shared by PeerHost and PeerClient.
- Implementers
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
jsonMessages
→ Stream<
Map< String, dynamic> > -
Available on PeerSessionMessaging, provided by the PeerSessionMessagingX extension
Incoming application JSON payloads (excludes session handshake and text).no setter - localEndpoint → PeerEndpoint?
-
no setter
-
messagesStream
→ Stream<
PeerMessage> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
textMessages
→ Stream<
String> -
Available on PeerSessionMessaging, provided by the PeerSessionMessagingX extension
Incoming plain-text chat messages (PeerMessageTypes.appText).no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
PeerMessage message) → Future< void> -
sendJson(
String type, [Map< String, dynamic> ? payload]) → Future<void> -
Available on PeerSessionMessaging, provided by the PeerSessionMessagingX extension
Sends a typed application payload using the stored local endpoint. -
sendText(
String text) → Future< void> -
Available on PeerSessionMessaging, provided by the PeerSessionMessagingX extension
Sends a plain-text message using the stored local endpoint. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited