Faster WebSocket reconnects

This commit is contained in:
Fedor Indutny
2021-06-09 15:28:54 -07:00
committed by GitHub
parent 3cac4a19e1
commit 17e6ec468e
25 changed files with 940 additions and 677 deletions

View File

@@ -14,7 +14,12 @@ const fakeAPI = {
getAvatar: fakeCall,
getDevices: fakeCall,
// getKeysForIdentifier : fakeCall,
getMessageSocket: () => new window.MockSocket('ws://localhost:8081/'),
getMessageSocket: async () => ({
on() {},
removeListener() {},
close() {},
sendBytes() {},
}),
getMyKeys: fakeCall,
getProfile: fakeCall,
getProvisioningSocket: fakeCall,