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

Still alive #18

Open
opravil-jan opened this issue Jul 21, 2019 · 9 comments
Open

Still alive #18

opravil-jan opened this issue Jul 21, 2019 · 9 comments

Comments

@opravil-jan
Copy link

Hello,

is this project still maintained?

Thank you
Jan Opravil

@MiroHibler
Copy link

Anyone?

@Shpadoinkle
Copy link

what is an alternative to this package? Seems abandoned, so will have to update current projects.

@Jonahss
Copy link

Jonahss commented Mar 20, 2021

I forked this repo and replaced pg-ipc with pg-listen
So now it will retry the connection to postgres.

https://github.com/originlabs/graphql-postgres-subscriptions

Published to npm as @originlabs/graphql-postgres-subscriptions-retry

@raymclee
Copy link

I forked this repo and replaced pg-ipc with pg-listen
So now it will retry the connection to postgres.

https://github.com/originlabs/graphql-postgres-subscriptions

Published to npm as @originlabs/graphql-postgres-subscriptions-retry

hi @Jonahss

i have tried your fork but the pubsub never get connected.
no problem with the original package tho.

@Jonahss
Copy link

Jonahss commented Apr 19, 2021

Hi @raymclee
If you send me sample code of your use-case I could take a quick look to see what could be wrong.
If you're using the asyncIterator, you have to pass in a list of topics in the constructor, that could be it.

I'm using my fork in production, so works for my case, but I'd be happy to fix any issues to work for your case.

@raymclee
Copy link

Hi @Jonahss, just tried again with topics added and it works!
not sure why it was not working last time. i think i have added the list of topics to constructor also.

@Jonahss
Copy link

Jonahss commented Apr 20, 2021 via email

@chevsunpower
Copy link

chevsunpower commented Aug 25, 2022

@Jonahss Thanks a ton for this. Saved my bacon today after I thought I got a feature done with plenty of time for a demo tomorrow only to find that the AWS load balancer was destroying my websocket usage when deployed to the hosted environment. Then I found this repo and it's so out of date that nothing worked. Figured I was done for until I found your fork. Worked great. Thanks!

PS - I did run into the same issue as raymclee above. Had to come up with a work around because I was indeed using dynamic topics. My current implementation isn't the greatest because I just moved the dynamic bit to the payload and the client now receives all the payloads under that topic and then filters off of the value. When I have more time I'll try to PR in some dynamic topic support to your fork. For now it works fine for demo though so I'm finally off to bed! 😅

@Jonahss
Copy link

Jonahss commented Aug 26, 2022 via email

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

No branches or pull requests

6 participants