fanout / django-eventstream

Server-Sent Events for Django
MIT License
650 stars 85 forks source link

Connection Error when running examples #9

Closed bhargav95 closed 6 years ago

bhargav95 commented 6 years ago

I followed the instructions given in the Readme for both the basic and the chat examples, but I continuously get "Connected" and "Connection Lost" messages. I am running it on an Ubuntu machine.

jkarneges commented 6 years ago

Hi, make sure you connect to the apps through Pushpin or Fanout Cloud, rather than directly. E.g. if you're using Pushpin, you'll want to browse to http://localhost:7999 instead of http://localhost:8000

bhargav95 commented 6 years ago

Thank you, that works!

bhargav95 commented 6 years ago

For the chat example, Fanout works, but Pushpin does not. I got http://localhost:7999 set up, but even after running the web server, it shows the Apache Ubuntu homepage instead of the actual website. I am trying to run pushpin --route="* localhost:8000" with sudo, will that cause any errors?

jkarneges commented 6 years ago

Did you install Pushpin via apt? If so, it's probably already running. In that case edit /etc/pushpin/routes to contain * localhost:8000.

bhargav95 commented 6 years ago

Thanks, that worked. Yes, I had installed it using apt.