django-eventstream icon indicating copy to clipboard operation
django-eventstream copied to clipboard

SSE work in localhost and not work in production

Open jonhy751 opened this issue 2 years ago • 4 comments

jonhy751 avatar Aug 18 '22 14:08 jonhy751

image localhost image In production

jonhy751 avatar Aug 18 '22 14:08 jonhy751

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

jkarneges avatar Aug 18 '22 19:08 jkarneges

Yes

jonhy751 avatar Aug 22 '22 20:08 jonhy751

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

jkarneges avatar Aug 22 '22 20:08 jkarneges