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

don't emit unsubscribe on client close #124

Merged
merged 2 commits into from
Jul 12, 2017
Merged

don't emit unsubscribe on client close #124

merged 2 commits into from
Jul 12, 2017

Conversation

behrad
Copy link
Collaborator

@behrad behrad commented Jul 12, 2017

No description provided.

@mcollina
Copy link
Collaborator

Good job, can you add a unit test so we do not regress?

@coveralls
Copy link

coveralls commented Jul 12, 2017

Coverage Status

Coverage remained the same at 97.451% when pulling 39569cf on behrad:unsubscribe into 18eff9f on mcollina:master.

@behrad
Copy link
Collaborator Author

behrad commented Jul 12, 2017

sure 👍

@behrad
Copy link
Collaborator Author

behrad commented Jul 12, 2017

covering test added @mcollina

@coveralls
Copy link

coveralls commented Jul 12, 2017

Coverage Status

Coverage remained the same at 97.451% when pulling 5bea9df on behrad:unsubscribe into 18eff9f on mcollina:master.

@mcollina mcollina merged commit c5b4a08 into moscajs:master Jul 12, 2017
@ilvalle
Copy link

ilvalle commented Jul 22, 2017

This PR blocks any logic a custom broker can run based on clients' unsubscriptions. Which is the advantage in not firing it? And without reverting this, is there any other way to catch client unsubscriptions on close event?

@GavinDmello
Copy link
Collaborator

GavinDmello commented Jul 22, 2017

This PR just blocks unsubscriptions on disconnects. If normal unsubscribe events are not being fired then it's an issue

@mcollina
Copy link
Collaborator

Ahum, I think we might have to revert this, at least partially.

IMHO we should fire 'unsubscribe' for clean = true clients, but not for clean = false  client. Would that still work for you @behrad?

@behrad
Copy link
Collaborator Author

behrad commented Jul 29, 2017

we should fire 'unsubscribe' for clean = true clients, but not for clean = false  client. Would that still work for you @behrad?

Yes, I believe we should fire unsubscribe only for clean=true clients.

@mcollina
Copy link
Collaborator

@behrad would you mind firing a PR?

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.

5 participants