PeerHostImpl class final
- Implemented types
- Available extensions
Constructors
- PeerHostImpl({required TransportFacade facade, required TransportSessionServer server})
Properties
-
connectionStream
→ Stream<
PeerConnectionInfo?> -
no setteroverride
- 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 setteroverride
-
messagesStream
→ Stream<
PeerMessage> -
no setteroverride
- 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
-
accept(
) → Future< void> -
override
-
disconnect(
) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reject(
) → Future< void> -
override
-
send(
PeerMessage message) → Future< void> -
override
-
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. -
start(
{required PeerUser localUser}) → Future< void> -
Starts advertising and waiting for a client invite.
override
-
startWithEndpoint(
{required PeerEndpoint localPeer}) → Future< void> -
Starts advertising using a pre-built PeerEndpoint (advanced).
override
-
stop(
) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited