-
Notifications
You must be signed in to change notification settings - Fork 42
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
Introduce subscription IDs #828
Conversation
89afc76
to
722f856
Compare
@jgraham I started a draft for managing subscriptions using a single list. I hope it is somewhat readable and if you think it is going in the right direction, I will work on TODOs and trying to make it landable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general I think this looks like the right approach, thanks!
We probably need to think carefully about the data structure for subscriptions, but I think it's going to work out :)
722f856
to
e9362fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally I think this is correct, but some of the use of spec primitives needs to be tightened up.
Also I think this model where we start with maximally compact structs with sets of both events and contexts, but in unsubscription break them apart into one struct per event is an awkward tradeoff
ce03187
to
a8a897f
Compare
50c1eb3
to
fda1c58
Compare
aba4af5
to
e28e69f
Compare
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com>
Co-authored-by: jgraham <james@hoppipolla.co.uk>
Co-authored-by: jgraham <james@hoppipolla.co.uk>
fc147ba
to
a6cae3f
Compare
I filed GoogleChromeLabs/chromium-bidi#2925 to track the work on implementation and WPT |
SHA: 60b9cc8 Reason: push, by OrKoN Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR implements subscription IDs which can be used to unsubscribe from events. The specification is refactored
to operate on a list of subscriptions.
Preview | Diff