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

Add support for type filter in push subscription #222

Open
neilj opened this issue Jul 3, 2018 · 1 comment
Open

Add support for type filter in push subscription #222

neilj opened this issue Jul 3, 2018 · 1 comment
Assignees
Labels
Extension Request for a JMAP extension specification

Comments

@neilj
Copy link
Member

neilj commented Jul 3, 2018

You can currently register what types you want to receive pushes for. However, this could still result in more pushes, and thus device wakens, then you need. This could be solved by allowing you to associate a filter object (the same as you would pass to /query) with the type in the push subscription. The server would then only send the push if the state of one of the objects changed matched the filter either before (destroyed, updated) or after (created, updated) the change.

The main downside of this is complexity of implementation; I think it would have to be optional and servers can still just always push whenever the type changes. That's OK, because it doesn't affect the client's implementation. It just means the client may get woken up slightly more often than necessary.

@neilj neilj added the Core label Jul 3, 2018
@neilj neilj self-assigned this Jul 6, 2018
@neilj neilj added Extension Request for a JMAP extension specification and removed Core labels Jul 16, 2018
@neilj
Copy link
Member Author

neilj commented Jul 16, 2018

It was determined at IETF102 that this should be an extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Extension Request for a JMAP extension specification
Projects
None yet
Development

No branches or pull requests

1 participant