-
Notifications
You must be signed in to change notification settings - Fork 15
Fix SSE field casing and add event handler support #46
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
616f87d
Fix SSE field casing and add event handler support
OnFreund 7cc186f
Handle null response from get_events
OnFreund d12673c
Fix datetime serialization and skip event fetch without handlers
OnFreund 344465d
Decouple state and event update paths; tighten null check
OnFreund bc71a97
Fix no-op comparison in test — use assertEqual for call_count
OnFreund c74737c
Fetch initial state immediately after SSE connection opens
OnFreund 04043b3
Store _last_event_update as raw string to avoid isoformat Z vs +00:00…
OnFreund 99f2c10
Auto-reconnect SSE loop on connection errors
OnFreund 685a59f
Exponential backoff and MaxRetriesError for SSE reconnect
OnFreund d0140df
Update README and SSE example for new reconnect behavior
OnFreund 34327fb
Fix self-cancellation deadlock and tight reconnect on clean EOF
OnFreund f6dfac9
Always cancel subscription task in close(), only skip self-await
OnFreund 33365cb
Fix timestamp parsing, re-login pattern, and close() cancel order
OnFreund cce5e60
Validate SSE response status and fix close() self-cancel
OnFreund 91c824f
Fix close() self-cancel by extracting _relogin()
OnFreund e690065
Simplify reconnect: drop _relogin(), fix attempt reset, clarify comments
OnFreund 52a2943
Fix attempt reset timing and close() self-await deadlock
OnFreund a754d83
Isolate handler exceptions from the SSE loop via _call_handlers
OnFreund 583c29d
Match local _call_handlers pattern: create_task + gather
OnFreund File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| from pyrisco.local import RiscoLocal | ||
| from pyrisco.cloud import RiscoCloud | ||
| from .common import CannotConnectError, OperationError, UnauthorizedError | ||
| from .common import CannotConnectError, OperationError, UnauthorizedError, MaxRetriesError |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.