amplitude / experiment-js-client

Amplitude Experiment client-side SDK for JavaScript
MIT License
8 stars 7 forks source link

feat: add stream api #98

Closed zhukaihan closed 9 months ago

zhukaihan commented 9 months ago

Summary

Adds a stream API so that we can now stream server-side events to SDK's. Adds a stream flag API that uses stream SPI so that we can now stream flags to SDK's.

The flow of execution is complex due to the nature of async everything related to SSE. Some doc that may help out understanding the flows.

Checklist

zhukaihan commented 9 months ago

Moving files to experiment-node-server SDK. Currently, only server should support stream and this change reduces client SDK package size.