StoredRejoinCredential class

Memory of the room credential this app last received for a room and name, so a reload or app restart can rejoin as the same participant.

MediaSFU keeps a participant's 3 most recent room credentials valid (servers with participant-rejoin-v1). When the SDK registers again it sends the stored credential as rejoinSecret, which lets the server re-admit the same participant even while the old connection is still registered. If the server still refuses the name, the stored credential itself is reused. Entries expire after 24 hours. Storage failures are ignored (a fresh registration still works).

Constructors

StoredRejoinCredential({required String roomName, required String userName, required String secret, String link = '', String publicURL = '', required int storedAt})

Properties

hashCode → int
The hash code for this object.
no setterinherited
final
publicURL → String
final
roomName → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secret → String
final
storedAt → int
final
userName → String
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

Static Methods

fromJson(Map<String, dynamic> json) → StoredRejoinCredential?