[PR #127] feat: Enable asynchronous configuration loading and configuration signal #122

Open
opened 2026-02-16 12:27:05 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stoatchat/javascript-client-sdk/pull/127
Author: @Dadadah
Created: 2/12/2026
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

  • b7d6f07 feat: Enable asynchronous configuration loading and configuration signal

📊 Changes

1 file changed (+10 additions, -0 deletions)

View changed files

📝 src/Client.ts (+10 -0)

📄 Description

Currently, when the client is initialized, it will not have a configuration unless set externally as the web app does. This results in the client not having full knowledge of how to interact with the server until a login is attempted. By loading configuration on client creation, the client can have full knowledge of how to interact with the server before login. This is particularly useful with account registration on invite only servers.

Implements #126

Required for stoatchat/for-web#698


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/stoatchat/javascript-client-sdk/pull/127 **Author:** [@Dadadah](https://github.com/Dadadah) **Created:** 2/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`b7d6f07`](https://github.com/stoatchat/javascript-client-sdk/commit/b7d6f077bc25f7d29ba481025bfd6e9ea081e0ea) feat: Enable asynchronous configuration loading and configuration signal ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/Client.ts` (+10 -0) </details> ### 📄 Description Currently, when the client is initialized, it will not have a configuration unless set externally as the web app does. This results in the client not having full knowledge of how to interact with the server until a login is attempted. By loading configuration on client creation, the client can have full knowledge of how to interact with the server before login. This is particularly useful with account registration on invite only servers. Implements #126 Required for stoatchat/for-web#698 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 12:27:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/javascript-client-sdk#122