-
Notifications
You must be signed in to change notification settings - Fork 88
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
send_event doesn't work with pushpin inside container #53
Comments
Hmm, is the client actually connecting to Pushpin? |
Could you please explain how can I make sure that a client has connected to Pushpin? I thought it's grip middleware concern to connect clients to Pushpin? |
Pushpin is a proxy server that must be placed in front of the app, for clients to connect through. Then the app publishes messages to Pushpin. By default, Pushpin listens for client connections on port 7999 and routes them according to the routes file. I suggest changing the nginx config for the events path to route to pushpin:7999. |
Oh I got it all wrong. I thought that Pushping is used as communication layer between processes and grip middleware actually connects clients. Thanks for clarification I got it working so I'm closing this issue. |
Hi, I have a multi container application setup and I can't configure communication between processes via Pushpin.
Container setup is next:
app
async_app
nginx
celery
pushpin
In my django project I installed django-eventstream app and configured everything according your guide. I've set up
GRIP_URL
to'http://pushpin:5561'
.I've configured routing
nginx configured to proxy /events requests to daphne container
And in I've also volumed config folder to pushpin container where I put routes file
I've initialized eventsource on front-end:
And in my celery task I call
send_event
:When I load page I see connection being successfuly established and it receives keep-alive message from time to time. But when I trigger my celery task in pushpin container log I see that both times messages were published but no one recieved them
I've double checked django settings and searched error log for any clue but everything seems to be working fine except that client doesn't get subscribed to message channel for some reason.
The text was updated successfully, but these errors were encountered: