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

Ws subscriptions on heroku #19

Closed
gilesbradshaw opened this issue Jan 11, 2017 · 6 comments
Closed

Ws subscriptions on heroku #19

gilesbradshaw opened this issue Jan 11, 2017 · 6 comments

Comments

@gilesbradshaw
Copy link

Can you give me a pointer re getting websockets to work on heroku?

@larixer
Copy link
Member

larixer commented Jan 11, 2017

@gilesbradshaw It works out of the box. Open https://apollo-fullstack-starter-kit.herokuapp.com in the two web browser tabs, increment counter in one tab and check another tab - it will increment too, thanks to subscription.

@larixer larixer closed this as completed Jan 11, 2017
@gilesbradshaw
Copy link
Author

gilesbradshaw commented Jan 11, 2017

It doesn't for me by going to those urls ... Maybe something wrong my end? I've been playing with this with my app from what I understand heroku only gives you one port in process.env.PORT

where I got to was having two heroku apps one for http and one for ws

@larixer
Copy link
Member

larixer commented Jan 11, 2017

WS is served on the same port. It works for me both on that Heroku URL and locally, inside the Chrome browser

@larixer larixer reopened this Jan 11, 2017
@larixer
Copy link
Member

larixer commented Jan 11, 2017

Subscriptions on https://apollo-fullstack-starter-kit.herokuapp.com/ work for me in Firefox too.

@gilesbradshaw
Copy link
Author

Hi That's odd. I can't get it to work in anything. I shall try tonight from a different network.

@gilesbradshaw
Copy link
Author

ok it works now I am at home must have been to do wth network thanks for your time!

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

2 participants