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

Subscription prime #93

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

bernardd
Copy link

@bernardd bernardd commented May 3, 2022

This is the companion PR for absinthe-graphql/absinthe#1168

Like that one, this is still a WIP requiring documentation (and correction of dependencies once the other one is merged).

The main changes here are: a) handling of continuations (the {:more, ...} return values) and subscription ordinal-based filtering to avoid sending out-of-date updates.

Copy link

@derekbrown derekbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cursory comments

lib/absinthe/phoenix/channel.ex Outdated Show resolved Hide resolved
lib/absinthe/phoenix/channel.ex Show resolved Hide resolved
end

defp send_msg(msg, socket) do
encoded_msg = socket.serializer.fastlane!(msg)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we care to try/catch this and return a normalized error?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't, but maybe there's a good reason to do it here?

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.

3 participants