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

Extension for MQTTSessionManagerDelegate #401

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Extension for MQTTSessionManagerDelegate #401

wants to merge 3 commits into from

Conversation

Corotata
Copy link

let user to decide wheather trigger reconnect,sometime when error.code == MQTTSessionErrorConnackBadUsernameOrPassword | MQTTSessionErrorConnackServeUnavailable,reconnect is unnecessary.

Corotata added 2 commits December 12, 2017 17:42
@jcavar
Copy link
Contributor

jcavar commented Dec 14, 2017

I think your use case sounds reasonable to be implemented. I feel like didTriggerDelayedReconnectWithErrorshould be renamed to shouldTriggerDelayedReconnectForError or something like that.

I would also reverse condition so that we don't have empty if and we need some tests around this.

- (BOOL)sessionManager:(MQTTSessionManager *)sessionManager didTriggerDelayedReconnectWithError:(NSError *)error;
												↓
- (BOOL)sessionManager:(MQTTSessionManager *)sessionManager shouldTriggerDelayedReconnectForError:(NSError *)error;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants