diff --git a/ui/src/routes/+layout.svelte b/ui/src/routes/+layout.svelte index fa5438ef..9d0e7d51 100644 --- a/ui/src/routes/+layout.svelte +++ b/ui/src/routes/+layout.svelte @@ -44,7 +44,7 @@ await adminWebsocket.authorizeSigningCredentials(cellIds[0]) } console.log("appPort and Id is", appPort, appId) - const params: AppWebsocketConnectionOptions = {url: new URL(url)} + const params: AppWebsocketConnectionOptions = {url: new URL(url), defaultTimeout: 60000} if (tokenResp) params.token = tokenResp.token client = await AppWebsocket.connect(params) let profilesClient = new ProfilesClient(client, appId); diff --git a/ui/src/store/RelayClient.ts b/ui/src/store/RelayClient.ts index e036501c..2c23e9e6 100644 --- a/ui/src/store/RelayClient.ts +++ b/ui/src/store/RelayClient.ts @@ -43,7 +43,7 @@ export class RelayClient { fn_name: 'create_profile', payload: { nickname: firstName + ' ' + lastName, fields: { avatar, firstName, lastName } } }; - const profile = await this.client.callZome(req, 30000); + const profile = await this.client.callZome(req, 60000); return profile } @@ -54,7 +54,7 @@ export class RelayClient { fn_name: 'update_profile', payload: { nickname: firstName + ' ' + lastName, fields: { avatar, firstName, lastName } } }; - const profile = await this.client.callZome(req, 30000); + const profile = await this.client.callZome(req, 60000); // Update profile in every conversation I am a part of Object.values(this.conversations).forEach(async (conversation) => { @@ -64,7 +64,7 @@ export class RelayClient { fn_name: 'update_profile', payload: { nickname: firstName + ' ' + lastName, fields: { avatar, firstName, lastName } } }; - await this.client.callZome(req, 30000); + await this.client.callZome(req, 60000); }) return profile @@ -167,7 +167,7 @@ export class RelayClient { fn_name: 'get_agents_with_profile', payload: null, }; - const agentsResponse = await this.client.callZome(req, 30000); + const agentsResponse = await this.client.callZome(req, 60000); return await agentsResponse.reduce(async (resultsPromise: { [key: AgentPubKeyB64]: Profile }, a: any) => { const agentRecord = await this.client.callZome({ @@ -175,7 +175,7 @@ export class RelayClient { zome_name: 'profiles', fn_name: 'get_agent_profile', payload: a - }, 30000); + }, 60000); const results = await resultsPromise; results[encodeHashToBase64(a)] = decode(agentRecord.entry.Present.entry) as Profile return results @@ -226,7 +226,7 @@ export class RelayClient { fn_name: 'create_profile', payload: profile, }; - return await this.client.callZome(req, 30000); + return await this.client.callZome(req, 60000); } public async inviteAgentToConversation(conversationId: string, forAgent: AgentPubKey, role: number = 0): Promise { @@ -256,7 +256,7 @@ export class RelayClient { fn_name: 'get_all_contact_entries', payload: null } - const result = await this.client.callZome(req, 30000) + const result = await this.client.callZome(req, 60000) return result } @@ -272,7 +272,7 @@ export class RelayClient { public_key: decodeHashFromBase64(contact.publicKeyB64) } } - const result = await this.client.callZome(req, 30000) + const result = await this.client.callZome(req, 60000) return result } @@ -292,7 +292,7 @@ export class RelayClient { } } } - const result = await this.client.callZome(req, 30000) + const result = await this.client.callZome(req, 60000) return result } @@ -306,6 +306,6 @@ export class RelayClient { fn_name, payload, }; - return await this.client.callZome(req, 30000); + return await this.client.callZome(req, 60000); } } \ No newline at end of file