Skip to content

Commit 392e1c5

Browse files
committed
feat(web): add device token refresh ms
1 parent fb99e20 commit 392e1c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/_internal/js/device/device.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ class DeviceOptions {
122122
/// The sound files to use for the Device's ringtone and other sounds. This should be a map of sound names to URLs but the Map type is not supported in JS interop yet so we use dynamic with jsify.
123123
external dynamic sounds;
124124

125-
external factory DeviceOptions({int logLevel = 1, List<String>? codecPreferences, bool closeProtection = false, dynamic sounds, bool enableImprovedSignalingErrorPrecision = true, bool allowIncomingWhileBusy = false});
125+
/// The time in milliseconds after which the Device will attempt to refresh its access token.
126+
external int? tokenRefreshMs;
127+
128+
external factory DeviceOptions({int logLevel = 1, List<String>? codecPreferences, bool closeProtection = false, dynamic sounds, bool enableImprovedSignalingErrorPrecision = true, bool allowIncomingWhileBusy = false, int? tokenRefreshMs});
126129
}
127130

128131
/// Device Connect options

0 commit comments

Comments
 (0)