FakeRtcPeerAdapter class
A pure-Dart RtcPeerAdapter for one peer.
- Implemented types
Constructors
- FakeRtcPeerAdapter({required String selfKey, required FakeRtcBus bus})
Properties
- bus → FakeRtcBus
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
links
→ Iterable<
RtcPeerLink> -
Links currently open, for tests that assert on release.
no setter
-
openedChannels
→ List<
FakeChannelRequest> -
Every channel this adapter was asked to open, in order and cumulative.
final
-
peerKeys
→ Set<
String> -
Peers this adapter currently holds a connection to.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfKey → String
-
This peer's key — the node uId the remote side will name.
final
Methods
-
close(
) → Future< void> -
Closes every link this adapter created.
override
-
createLink(
String peerKey, {List< Map< iceServers = const []}) → Future<String, Object?> >RtcPeerLink> -
Builds a connection to one peer. Does not begin negotiation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openChannelIdsTo(
String peerKey) → Set< int> -
Channel ids currently open to
peerKey. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited