TurnCredentials class

TURN/STUN credentials the SFU hands us on joined. These are short-lived, and nothing in the joined handshake or anywhere else in the signalling plane ever refreshes them mid-call. A call that outlives them loses its relay path with no warning; whoever integrates this signalling plane needs to leave and rejoin (or otherwise trigger a fresh joined) before that happens, since nothing here does it automatically.

Constructors

TurnCredentials({required List<String> urls, required String username, required String password})
const
TurnCredentials.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
password String
The short-lived TURN password.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
urls List<String>
The TURN/STUN server URLs to try, in order.
final
username String
The short-lived TURN username.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited