Skip to content

fix: handle non-numeric lastEventId in SSE connection#2150

Open
saschabuehrle wants to merge 1 commit into
TheMorpheus407:masterfrom
saschabuehrle:fix/issue-2149
Open

fix: handle non-numeric lastEventId in SSE connection#2150
saschabuehrle wants to merge 1 commit into
TheMorpheus407:masterfrom
saschabuehrle:fix/issue-2149

Conversation

@saschabuehrle

Copy link
Copy Markdown

Fixes #2149

When lastEventId is non-numeric, parseInt returns NaN and sequence gets set to an invalid value. This falls back to 0 so SSE sequencing stays valid.

Greetings, saschabuehrle

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.

[MEDIUM] sse.handler.ts parseInt returns NaN for non-numeric lastEventId at line 49

1 participant