Comments (7)
Hi,
The processes don't talk to each other, so when a message is sent it is only pushed to clients connected to the same process. To support multiple processes, you'll need to delegate connection management to a GRIP proxy. See multiple instances and scaling.
If you don't expect tons of traffic, I'd say just use 1 Daphne process.
from django-eventstream.
Hello,
Thanks for your answer. In a first time, i try to use pushpin, butdid not success to make it works on my mac. (message sent to pushpin, bud did not déliver). I will give it a try again.
If you get any tips, you're wellcome :-).
Thanks for all.
from django-eventstream.
Hey @tboulogne,
A few items to consider:
- Make sure your
GRIP_URL
points to the Pushpin HTTP Control API.
# default local Pushpin HTTP Control API
GRIP_URL = 'http://localhost:5561'
- Make sure your Pushpin configuration has the proper route setup in the routesfile.
* http://localhost:8000
Replace localhost:8000
with whatever your app's <host>:<port>
combination is.
- Make sure that when you're accessing your site, you're doing so through the Pushpin URL and not the app URL. By default, Pushpin will listen at http://localhost:7999.
Let us know if you have any additional questions!
from django-eventstream.
hey @kevinswiber,
Thanks for insights.
Point 3 mean, that the upstream backend for nginx is pushpin and not daphne ?
from django-eventstream.
@kevinswiber i got a working pushpin :-) !
Bu if face randomly lost connection on some statics files :
Any tips to improve this please ?
Thanks for all.
Regards
from django-eventstream.
Weird. Is this easy to reproduce? Can you share the logs from pushpin-proxy.log around the time this happens?
from django-eventstream.
hello,
Sorry for the delay. As i need to progress on this project, i switch back to one instance. But i will take some time and back to you with details.
Could hold this case for now if you want.
Regards.
from django-eventstream.
Related Issues (20)
- Do I need close channels when all data are sent? HOT 2
- Why there is a hardcoded channel name prefix `events-` in case of pushpin proxy HOT 3
- send_event not sending an event in localhost HOT 4
- Support ZeroMQ HOT 1
- What is the difference between evenstream and websockets? HOT 2
- Does not work for utf-8 symbols HOT 1
- Headers are missing in django-eventstream url patterns HOT 1
- Support for django-rq HOT 1
- ModuleNotFoundError: No module named 'channels.http' HOT 3
- CORS Error: How can we allow multiple origins HOT 2
- Compatibility with htmx HOT 5
- How to run examples using Uvicorn? HOT 4
- AttributeError: 'ASGIRequest' object has no attribute 'grip' HOT 1
- Django rest framework router register eventstream HOT 2
- Further pull request for REST version
- Change path of static file
- Question: Why Django 5+? HOT 1
- Improve logging HOT 1
- Filtering events before sending to a client HOT 7
- Interested in tests dev ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-eventstream.