use of org.thoughtcrime.securesms.net.SignalWebSocketHealthMonitor in project Signal-Android by WhisperSystems.
the class ApplicationDependencyProvider method provideSignalWebSocket.
@Override
@NonNull
public SignalWebSocket provideSignalWebSocket() {
SleepTimer sleepTimer = SignalStore.account().isFcmEnabled() ? new UptimeSleepTimer() : new AlarmSleepTimer(context);
SignalWebSocketHealthMonitor healthMonitor = new SignalWebSocketHealthMonitor(context, sleepTimer);
SignalWebSocket signalWebSocket = new SignalWebSocket(provideWebSocketFactory(healthMonitor));
healthMonitor.monitor(signalWebSocket);
return signalWebSocket;
}
use of org.thoughtcrime.securesms.net.SignalWebSocketHealthMonitor in project Signal-Android by signalapp.
the class ApplicationDependencyProvider method provideSignalWebSocket.
@Override
@NonNull
public SignalWebSocket provideSignalWebSocket() {
SleepTimer sleepTimer = SignalStore.account().isFcmEnabled() ? new UptimeSleepTimer() : new AlarmSleepTimer(context);
SignalWebSocketHealthMonitor healthMonitor = new SignalWebSocketHealthMonitor(context, sleepTimer);
SignalWebSocket signalWebSocket = new SignalWebSocket(provideWebSocketFactory(healthMonitor));
healthMonitor.monitor(signalWebSocket);
return signalWebSocket;
}
use of org.thoughtcrime.securesms.net.SignalWebSocketHealthMonitor in project mollyim-android by mollyim.
the class ApplicationDependencyProvider method provideSignalWebSocket.
@Override
@NonNull
public SignalWebSocket provideSignalWebSocket() {
SleepTimer sleepTimer = SignalStore.account().isFcmEnabled() ? new UptimeSleepTimer() : new AlarmSleepTimer(context);
SignalWebSocketHealthMonitor healthMonitor = new SignalWebSocketHealthMonitor(context, sleepTimer);
SignalWebSocket signalWebSocket = new SignalWebSocket(provideWebSocketFactory(healthMonitor));
healthMonitor.monitor(signalWebSocket);
return signalWebSocket;
}
Aggregations