| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@andrewleech, if you had a moment to review + comment, I'd appreciate it. |
Sorry, something went wrong.
|
Those examples look great! |
Sorry, something went wrong.
|
Anything else I ought to do / address before this can go forward for merge? |
Sorry, something went wrong.
|
Hey guys, any chance we can progress this to merge? If there's anything else to do beforehand, let me know. |
Sorry, something went wrong.
|
@andrewleech, @dpgeorge, you guys seem like the people to be pestered! 🤣 (sorry). Are there reasons this PR shouldn't progress? If there's anything more I should do, please do tell. |
Sorry, something went wrong.
|
Just polling to see if this can go ahead. |
Sorry, something went wrong.
|
This change allows reconnect() to respect subclass overrides of connect(), which aligns with normal Python polymorphism and enables common extension patterns (e.g. setting LWT state or re-subscribing after reconnect as per examples). Currently, using super().connect() bypasses such overrides, meaning subclasses cannot reliably customise connection behaviour during reconnects. This PR does assume that connect() will never call reconnect(). If that contract is expected, this seems like the more extensible approach; if not, the current implementation is safer but restricts subclass behaviour. Happy to leave as-is if the intention is to keep reconnect() tied strictly to the base implementation. Would love to close this PR if that is the case. |
Sorry, something went wrong.
Follow up to commit 5dad29e. Add a comment on how to override the `connect()` method by a subclass, and provide examples: `example_lwt_robust.py` and `example_resubscribe_robust.py`. Co-authored by: Ian Cotter-Llewellyn <ian_llewellyn@hotmail.com> Date: Thu May 25 11:42:20 2023 +0100
|
This is now rebased and merged. Thanks @ian-llewellyn for persisting with this for so long 👍 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This allows overriding of the connect() method by a subclass as per the included examples: example_lwt_robust.py and example_resubscribe_robust.py.
Fixes #186, #321 (by enabling example_resubscribe_robust.py)
Supersedes PR #195 (original source file moved, examples added)