Additional logging, more reliable contact/group sync fetch

This commit is contained in:
Scott Nonnenberg 2023-06-14 13:51:49 -07:00 committed by GitHub
parent 8e1a30d720
commit efc237d106
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 86 additions and 16 deletions

View file

@ -225,7 +225,9 @@ export class SocketManager extends EventListener {
return;
}
log.info('SocketManager: connected authenticated socket');
log.info(
`SocketManager: connected authenticated socket (localPort: ${authenticated.localPort})`
);
window.logAuthenticatedConnect?.();
this.backOff.reset();
@ -503,7 +505,9 @@ export class SocketManager extends EventListener {
throw error;
}
log.info('SocketManager: connected unauthenticated socket');
log.info(
`SocketManager: connected unauthenticated socket (localPort: ${unauthenticated.localPort})`
);
unauthenticated.addEventListener('close', ({ code, reason }): void => {
if (this.unauthenticated !== process) {