Skip to content

Commit

Permalink
clarify readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leoromanovsky committed Jun 21, 2024
1 parent df414fd commit b331b4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ The `init` function accepts the following optional configuration arguments.
| **`throwOnFailedInitialization`** | boolean | Throw an error (reject the promise) if unable to fetch initial configurations during initialization. | `true` |
| **`numPollRequestRetries`** | number | If polling for updated configurations after initialization, the number of additional times a request will be attempted before giving up. Subsequent attempts are done using an exponential backoff. | `7` |

## Syncronous initialization
## Off-line initialization

The SDK supports synchronous initialization. This is useful if you want to initialize the SDK with a configuration from your server SDK. In this mode the SDK will not attempt to fetch a configuration from Eppo's CDN, but will instead use the one you provide.
The SDK supports off-line initialization if you want to initialize the SDK with a configuration from your server SDK or other external process. In this mode the SDK will not attempt to fetch a configuration from Eppo's CDN, but will instead use the provided values.
When this function returns the SDK is ready for assignments.
This function is synchronous and ready to handle assignments after it returns.
```javascript
import { offlineInit, Flag, ObfuscatedFlag } from "@eppo/js-client-sdk";
Expand Down

0 comments on commit b331b4c

Please sign in to comment.