Move to websocket for requests to signal server
This commit is contained in:
parent
8449f343a6
commit
1c1d0e2da0
31 changed files with 1892 additions and 1336 deletions
|
@ -81,12 +81,16 @@ export class User extends EventEmitter {
|
|||
? this.storage.put('device_name', deviceName)
|
||||
: Promise.resolve(),
|
||||
]);
|
||||
}
|
||||
|
||||
window.log.info('storage.user: credentials changed');
|
||||
public emitCredentialsChanged(reason: string): void {
|
||||
window.log.info(`storage.user: credentials changed, ${reason}`);
|
||||
this.emit('credentialsChange');
|
||||
}
|
||||
|
||||
public async removeCredentials(): Promise<void> {
|
||||
window.log.info('storage.user: removeCredentials');
|
||||
|
||||
await Promise.all([
|
||||
this.storage.remove('number_id'),
|
||||
this.storage.remove('uuid_id'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue