Comments (9)
You should probably ask this on the uWSGI lists/forums, as it's more a case of "how do I use WebSockets under uWSGI?" I believe there has been some work done in that area, but since WebSockets are essentially incompatible with the WSGI 1.0 spec, it's unlikely to work.
from gevent-socketio.
You also need gevent to work, and uWSGI has horrible gevent support ( http://projects.unbit.it/uwsgi/wiki/Gevent ), so I would recommend using gunicorn instead.
from gevent-socketio.
Hey guys, thanks will try it but I wonder if Gunicorn works with Apache? I'm pretty much stuck with it, do you think it will work the same as with Nginx if I use proxy pass in Apache to Gunicorn or do you recon there might be some issues?
from gevent-socketio.
Gunicorn can serve content completely independently of Apache, or you can use Apache's mod_proxy to hand requests to a backend Gunicorn server (but WebSockets won't work through mod_proxy).
from gevent-socketio.
@dswarbrick yayks, just as when I was thinking all request comes in apache and just forward the socketio related to gunicorn. :/ Could you enlighten me why gunicorn won't work under mod_proxy?
from gevent-socketio.
@marconi What I use is gunicorn with a gevent worker and nginx as a proxy with buffering off. Its very fast/scalable and works just the way you would want it to.
from gevent-socketio.
@sontek the thing is, our sysad is quite attached to Apache. I'll give it another shot, might be able to convince him this time. :)
from gevent-socketio.
Yeah, you can use apache. I know someone who does HAProxy + Apache but I haven't done it.
from gevent-socketio.
@sontek Can you elaborate on what you mean by using nginx as a proxy? Is that proxying WebSockets?
from gevent-socketio.
Related Issues (20)
- How to broadcast data to a room (of socket io) when the server receives data from somewhere else (not using socket io)
- headers use integer for Access-Control-Max-Age HOT 1
- GeventSocketIOWorker fails to boot when used with gunicorn and ssl flags
- WebSocket is closed before the connection is established. HOT 1
- gevent UnicodeError HOT 3
- django.utils.importlib is removed in Django 1.9 HOT 1
- Merge working tests MR and ask people to rebase
- About renaming the "socketio" library name
- BaseNamespace.session
- SSL Error
- Django 1.10 Support
- django example won't install
- WebSocketError: Received "Socket is dead".
- My chat room sometimes the user sends the text all become?????
- how to run socket.io chat app from two different ports
- Tag 668d11edbd62052cde1583be1e1d0512c930f16d as 0.3.6?
- Release 0.3.7 with post-0.3.6 fixes? HOT 1
- Is it possible to use gevent-socketio as a socket.io client? HOT 1
- KeyError: 'socketio' in socketio_manager
- Version compatability issue on Executing Tests
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 gevent-socketio.