Skip to content

Subscription prime#93

Open
bernardd wants to merge 18 commits intoabsinthe-graphql:mainfrom
circles-learning-labs:subscription-prime
Open

Subscription prime#93
bernardd wants to merge 18 commits intoabsinthe-graphql:mainfrom
circles-learning-labs:subscription-prime

Conversation

@bernardd
Copy link
Copy Markdown

@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
Copy Markdown

@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

end

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

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
Copy Markdown
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?

@bernardd bernardd force-pushed the subscription-prime branch from f22e7f6 to 8c74f51 Compare June 21, 2022 01:42
@bernardd bernardd force-pushed the subscription-prime branch from 8c74f51 to d506f01 Compare June 21, 2022 01:43
@bernardd bernardd force-pushed the subscription-prime branch from 17d069f to fb6d5b7 Compare May 1, 2024 05:50
@bernardd bernardd force-pushed the subscription-prime branch from fb6d5b7 to 17d069f Compare July 9, 2024 07:40
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