Issues with Flask-SocketIO + uWSGI + Nginx setup #2053
Unanswered
schizoprada
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I believe the uwsgi protocol does not support WebSocket, I suggest you try regular HTTP proxying instead. |
Beta Was this translation helpful? Give feedback.
0 replies
-
ok I modified the
with:
and now in the web console im seeing:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am in the process of patching an update to my app, however, I'm running into some issues I wasn't facing during local development. At first I was able to get the client to successfully emit to the server, but not the inverse, all this amidst a see of warning and errors, including handshake failure. After messing around with some stuff in my VM, I got the handshake to start working, and the connection is being upgraded to websocket, but its as if now after the initial connection nothing is sending, either from server to client or vice versa.
Some context:
Im instantiating socketio in my main app file where I register my blueprints, but since I only really need it for one blueprint atm I've wrapped it in a function that takes the socketio as an arg and returns the blueprint before registering it
then in the
dialogue
blueprint, using standardon
andemit
for example:on the matching
dialogue.js
ive got:in my uWSGI .ini:
and In my nginx sites-available:
I would go more into depth about the errors, but ive switched stuff around so much and got so many different kinds of errors (and success) that im genuinely lost. Any and all help would be much appreciated! thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions