js-bao-wss-client / initializeClient
Function: initializeClient()
initializeClient(
options,waitOptions?):Promise<JsBaoClient>
Recommended way to create a JsBaoClient. Constructs the client, waits for the local database runtime to be ready (skip with waitOptions.dbReady: false), and waits for the initial authentication bootstrap before resolving, so the returned client is safe to use immediately (for example to open documents).
Parameters
options
waitOptions?
dbReady?
boolean
Returns
Promise<JsBaoClient>