Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFM-8106 - initialize() will now correctly setup the SSE channel #32

Merged
merged 3 commits into from
Jun 29, 2023

Conversation

andybharness
Copy link
Contributor

FFM-8106 - initialize() will now correctly setup the SSE channel

What
Fix initialize to setup the SSE channel and/or polling. Currently it requires a 2nd call to registerEventsListener()

Why
Make client API more consistent with Android SDK.
The 2nd call is confusing for people learning the SDK for the first time as you won't see any events after init. registerEventsListener() should not setup the SSE channel instead it should just register callbacks.

Testing
Manual testing with proxy and unit testing

What
Fix initialize to setup the SSE channel and/or polling. Currently it requires a 2nd call to registerEventsListener()

Why
Make client API more consistent with Android SDK.
The 2nd call is confusing for people learning the SDK for the first time as you won't see any events after init.
registerEventsListener() should not setup the SSE channel instead it should just register callbacks.

Testing
Manual testing with proxy and unit testing
@andybharness andybharness merged commit 280b59b into main Jun 29, 2023
@andybharness andybharness deleted the FFM-8106-fix-init branch June 29, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants