NOTE: This library is deprecated
The documentation is the same for both and is in the Browser SDK, just the implementations of http/https related functionality differ.
There are 2 ways to request for feature updates via this SDK:
SSE (Server Sent Events) realtime updates mechanism
In this mode, you will make a connection to the FeatureHub Edge server using the EventSource library which this SDK is based on, and any updates to any features will come through to you in near realtime, automatically updating the feature values in the repository. Note, there is a known issues in the browsers with Kaspersky antivirus potentially blocking SSE events. GitHub issue
FeatureHub polling client (GET request updates)
In this mode, you make a GET request, which you can choose to either do once, when specific things happen in your application, (such as navigation change) or on a regular basis (say every 5 minutes) and the changes will be passed into the FeatureHub repository for processing.