feat: Add asynchronous config fetch and signal #40

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

Originally created by @Dadadah on GitHub (Feb 12, 2026).

Currently, when using this library, if you need to access the api via the client before logging in, the configuration is unset. This is dealt with in the web client by hard coding the configuration on client configuration.

It would be beneficial to have the config fetched asynchronously on client creation and then have a signal for when the configuration has finished loaded. This makes it where the client can see when a server is invite only before trying to login.

Originally created by @Dadadah on GitHub (Feb 12, 2026). Currently, when using this library, if you need to access the api via the client before logging in, the configuration is unset. This is dealt with in the web client by hard coding the configuration on client configuration. It would be beneficial to have the config fetched asynchronously on client creation and then have a signal for when the configuration has finished loaded. This makes it where the client can see when a server is invite only before trying to login.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/javascript-client-sdk#40