WebRTCMesh<ISignalling extends Signalling<SignalMessage> > class
The main class for WebRTC mesh
ISignalling
is the type of signalling to be used
SignalMessage is the type of signalling message
Constructors
-
WebRTCMesh.new({required String roomID, String? peerID, required ItemCreator<
ISignalling> signallingCreator}) - Sends a join announcement to all peers on the mesh
Properties
-
configuration
→ Map<
String, dynamic> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- localPeerID ↔ String
-
latefinal
-
messageStream
↔ StreamController<
Message> -
getter/setter pair
-
offerOptions
→ Map<
String, dynamic> -
final
- roomID → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signallingCreator
↔ ItemCreator<
ISignalling> -
getter/setter pair
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMessage(
SignalMessage event) → Future< void> -
printPeers(
) → void -
sendToAllPeers(
String message) → Future< void> - Send a message to all peers in the mesh
-
sendToPeer(
String peerID, String message) → Future< void> - Send a message to a peer
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited