use of org.whispersystems.signalservice.api.SignalWebSocket 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;
}
Aggregations