Feature request: add an event handler on event source received
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- api
Research direction
Start by locating the SDK entry points that process the eventSourceUrl and realtime initialization parameters, then compare that flow with the existing onChange handling. Confirm how manually configured event sources deliver events. Done means exposing an onEventSourceReceived handler that runs for each received event independently of onChange, with coverage for the new behavior.
Written by the indexing model from the issue text.
Description
Problem
At the moment the SDK provides realtime capabilities through eventSourceUrl and realtime init parameters but it doesn't expose a specific handler when a new event is received.
To add custom logic, it requires to setup the event-source manually
Solution
A solution could be to add a new handler onEventSourceReceived that would be triggered when a new event is received to allow for additional logic independently from onChange
- Dominant language
- TypeScript
- Stars
- 67
- Forks
- 47
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Flagsmith/flagsmith-js-client
-
`init({ traits })` double-wraps `{ value, transient }` trait objects, sending a nested `trait_value`Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Flagsmith/flagsmith-js-client#444 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Flagsmith/flagsmith-js-client#445 ·
-
Dependency DashboardOpen
Difficulty 1/5 Under an hour Newbie friendliness 20/100
Flagsmith/flagsmith-js-client#435 ·
-
Move module-scope Emitter in react.tsx into the ProviderPossibly taken @EngineerOnTravel claimed this 101 days ago. Openbug good first issue
Difficulty 3/5 1-2 days Newbie friendliness 58/100
Flagsmith/flagsmith-js-client#391 · 1 comment ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
Flagsmith/flagsmith-js-client#371 ·
All issues in Flagsmith/flagsmith-js-client
Similar issues
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
mermaid-js/mermaid-v13#1370 ·
Maintainers usually reply within 1 day
-
compiler: the island_chunks_not_emitted report gives a count but not which islands were skippedOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Broken Website
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
darkreader/darkreader#16259 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ARTPARK-SAHAI-ORG/calibrate-frontend#919 ·
Maintainers usually reply within 1 day