Merge branch 'develop' into perf
This commit is contained in:
@@ -510,9 +510,9 @@ class Channel {
|
||||
|
||||
/// Pins provided message
|
||||
Future<UpdateMessageResponse> pinMessage(
|
||||
Message message,
|
||||
Message message, [
|
||||
Object? timeoutOrExpirationDate,
|
||||
) {
|
||||
]) {
|
||||
assert(() {
|
||||
if (timeoutOrExpirationDate is! DateTime &&
|
||||
timeoutOrExpirationDate != null &&
|
||||
@@ -520,7 +520,7 @@ class Channel {
|
||||
throw ArgumentError('Invalid timeout or Expiration date');
|
||||
}
|
||||
return true;
|
||||
}(), 'Check for invalid token or expiration date');
|
||||
}(), 'Check whether timeout is valid');
|
||||
|
||||
DateTime? pinExpires;
|
||||
if (timeoutOrExpirationDate is DateTime) {
|
||||
|
||||
@@ -100,7 +100,7 @@ class WebSocket {
|
||||
/// connection unhealthy
|
||||
final int reconnectionMonitorTimeout;
|
||||
|
||||
final _connectionStatusController =
|
||||
final BehaviorSubject<ConnectionStatus> _connectionStatusController =
|
||||
BehaviorSubject.seeded(ConnectionStatus.disconnected);
|
||||
|
||||
set _connectionStatus(ConnectionStatus status) =>
|
||||
|
||||
Reference in New Issue
Block a user