question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Example without SubscriptionManager

See original GitHub issue

On the graphql-subscriptions github page i found

SubscriptionManager @deprecated
SubscriptionManager is the previous alternative for using graphql-js subscriptions directly, and it's now deprecated.

Could someone please provide a example without the SubscriptionManager.

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
davidyahacommented, Dec 19, 2017

Tried to make the flow more apparent:

Subscribe flow:

Browser --subscribe x--> WS server --> graphql.subscribe --> RedisPubSub.asyncItrable(x) 
--SUBSCRIBE x--> Redis

Publish flow:

Browser --mutation x--> graphql.mutate --> RedisPubSub.publish(x) --PUBLISH x--> Redis 
--> RedisPubSub.asyncIterator.next(x) --> graphql.subscribe.resolve(x) --> WS server
--> Browser

Does that makes sense? 🤔

I suggest reading the code of this package and of the subscriptions-transport-ws package to get clearer understanding, but let me know if you have more questions.

1reaction
davidyahacommented, Dec 19, 2017

@Knaackee You don’t need to worry about the SubscriptionManager anymore as the graphql engine uses the schema itself to handle subscriptions. I would recommend heading over to subscriptions-transport-ws and read their docs https://github.com/apollographql/subscriptions-transport-ws#server

Does that help?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SUBSCRIPTION-MANAGER COMMAND CHEAT SHEET
Passes the name of the content delivery service to configure the yum service to use to pull down packages subscription-manager register \.
Read more >
installation on RedHat without subscription-manager
Is there a way to install gcc-g++ (for example) without subscription-manager ? sudo yum upgrade gcc-c++ Loaded plugins: product-id, ...
Read more >
SubscriptionManager - Android Developers
Inform SubscriptionManager that subscriptions in the list are bundled as a group. It can be multiple primary (non-opportunistic) subscriptions, ...
Read more >
subscription-manager(8) - Linux man page - Die.net
The unregister command unregisters a machine, which strips its subscriptions and removes the machine from the entitlement service. This command has no options....
Read more >
How to Register and Enable Red Hat Subscription ... - Tecmint
Local Subscription Manager service tracks down the installed software products, available and used subscriptions and communicates with the Red ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found