fanout / django-eventstream

Server-Sent Events for Django
MIT License
664 stars 88 forks source link

SSE work in localhost and not work in production #98

Open jonhy751 opened 2 years ago

jonhy751 commented 2 years ago

image localhost image In production

jkarneges commented 2 years ago

Hi, in production are you running multiple servers/processes?

jonhy751 commented 2 years ago

Yes

jkarneges commented 2 years ago

Ah, you'll need to use a GRIP proxy in front of your app. See https://github.com/fanout/django-eventstream#multiple-instances-and-scaling