-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Server-Sent Events (SSE) support (#36)
* WIP realtime features repo * add SSE config to existing GBFeaturesRepository * interceptor notes * fix real networking test * WIP: event stream connection * add error for SSE * add constructor w/o okHttpClient * no timeout for SSE connections * add test server to test SSE refreshing * implement retry functionality * fallback to SWR refresh strategy * refactor: separate method to process response JSON string * update features json from SSE payload * remove custom http client from the builder class * rm log statements * bump version to 0.9.0
- Loading branch information
1 parent
97ca6ab
commit 8dae94d
Showing
9 changed files
with
384 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
lib/src/main/java/growthbook/sdk/java/FeatureRefreshStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package growthbook.sdk.java; | ||
|
||
public enum FeatureRefreshStrategy { | ||
STALE_WHILE_REVALIDATE, | ||
SERVER_SENT_EVENTS | ||
} |
Oops, something went wrong.