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

Do the reserved check on the receiving end of the event #17

Merged
merged 1 commit into from
Feb 3, 2014

Conversation

3rd-Eden
Copy link
Contributor

@3rd-Eden 3rd-Eden commented Feb 3, 2014

The receiving end on should be validating if they are allowed to emit the event. In the previous senario it would be possible that the server emitted an reconnect event and it would trigger on the client as it's not blocked on the server. It would also be impossible to emit an reconnect event on the server as that event is client is blocked by the client.

This simple trivial change would fix both cases without requiring a list of ALL events that are used in Primus.

The receiving end on should be validating if they are allowed to emit the event. In the previous senario it would be possible that the server emitted an `reconnect` event and it would trigger on the client as it's not blocked on the server. It would also be impossible to emit an `reconnect` event on the server as that event is client is blocked by the client.

This simple trivial change would fix both cases without requiring a list of ALL events that are used in Primus.
cayasso added a commit that referenced this pull request Feb 3, 2014
Do the reserved check on the receiving end of the event
@cayasso cayasso merged commit d39b527 into cayasso:master Feb 3, 2014
@cayasso
Copy link
Owner

cayasso commented Feb 3, 2014

Great idea, thanks @3rd-Eden!!!

@3rd-Eden 3rd-Eden deleted the patch-1 branch February 4, 2014 13:27
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.

2 participants