"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ts/services/networkObserver.ts" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

networkObserver.ts  (Signal-Desktop-1.35.2):networkObserver.ts  (Signal-Desktop-1.36.1)
skipping to change at line 14 skipping to change at line 14
} from '../state/ducks/network'; } from '../state/ducks/network';
import { getSocketStatus } from '../shims/socketStatus'; import { getSocketStatus } from '../shims/socketStatus';
type NetworkActions = { type NetworkActions = {
checkNetworkStatus: (x: CheckNetworkStatusPayloadType) => NetworkActionType; checkNetworkStatus: (x: CheckNetworkStatusPayloadType) => NetworkActionType;
closeConnectingGracePeriod: () => NetworkActionType; closeConnectingGracePeriod: () => NetworkActionType;
}; };
const REFRESH_INTERVAL = 5000; const REFRESH_INTERVAL = 5000;
export function initializeNetworkObserver(networkActions: NetworkActions) { export function initializeNetworkObserver(
networkActions: NetworkActions
): void {
const { log } = window; const { log } = window;
log.info(`Initializing network observer every ${REFRESH_INTERVAL}ms`); log.info(`Initializing network observer every ${REFRESH_INTERVAL}ms`);
const refresh = () => { const refresh = () => {
networkActions.checkNetworkStatus({ networkActions.checkNetworkStatus({
isOnline: navigator.onLine, isOnline: navigator.onLine,
socketStatus: getSocketStatus(), socketStatus: getSocketStatus(),
}); });
}; };
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)