Questions tagged [flask-socketio]

Flask-SocketIO lets Flask python applications access low latency bi-directional communications between the clients and the server

Flask-SocketIO is an open source library which implements the abstraction, for delivering low latency client-server communication in a application developed by Miguel Grinberg.

1052 questions
0
votes
0 answers

How to set python version for running flask application in uwsgi?

I deployed a flask SocketIO application using uwsgi server in Ubuntu 16.04.I will be getting my original app instance from a script wsgi.py from server import app if __name__ == "__main__": app.run() And in a separate virtual environment I…
S.Rakin
  • 812
  • 1
  • 11
  • 24
0
votes
1 answer

Drawing a dynamic Mixed Bar and Line chart with HIghchart.js with socket.io for live data

I am trying to draw a dynamic, mixed bar and line graph using Highchart.js. I am getting live data to my webpage using socket.io (I'm using Flask as my webserver so using Flask-socketIO). I am able to print the data coming to my webpage using…
May
  • 1,158
  • 2
  • 13
  • 24
0
votes
0 answers

Flask-SocketIO Authenticate

I want to confirm the user in flasks-socketio after users entry through the flasks-login but I get a message from the server flasks-socketio that users do not login or not logged in, though I have login via flasks-log in, so how to overcome…
0
votes
1 answer

flask socketio - server does not reload or update

I'm trying to use flask-socketio. I ran a simple example from the docs and it worked fine. I'm using a virtual environment app.py from flask import Flask, render_template from flask_socketio import SocketIO app =…
Dipanshu Juneja
  • 1,204
  • 14
  • 29
0
votes
2 answers

Flask-SocketIO + uWSGI. Emit with Mule worker

Recently I'm implementing WebSocket support in my Flask app. Setup looks as follow: 1. Python 2.7 2. Flask + Flask-SocketIo 3. SocketIO (Client side) 4. NGINX as proxy 5. uWSGI 2.0.13 + it's WebSocket with Gevent…
Silverrose
  • 160
  • 4
  • 18
0
votes
1 answer

Vue Socket.io Not Receiving Data

I currently have a Python Flask SocketIO application that will be connecting to a Vue app using this socket.io library. The Vue app (currently) will poll the Python application using socket.io on a button press. I can correctly receive the data sent…
xtheking
  • 575
  • 2
  • 8
  • 31
0
votes
0 answers

Flask-SocketIO and Celery task, socketio.emit() not emitting to client after task

I have trouble when trying to emit() to all connected clients with flask-socketio after successfully executing a celery task. The idea is the following: Call flask endpoint -> triggers celery task on worker # api.py @app.route('/api/task',…
DEls
  • 241
  • 3
  • 14
0
votes
0 answers

GET request only when developer tools open in the browser on a FLASK-Socket project

I am having an odd behavior in my FLASK project and I am not really sure what is going on here, basically it works OK while the developer tools of the browser is open (tested in firefox/chrome) but it stops updating as soon as I close it. I have a…
0
votes
1 answer

Flask development server serving corrupted socket.io.js file

I'm trying to create an app that uses SocketIO through the python flask-socketio package. I have set up my server as such: File ./run.py from my_project import app, socketio if __name__ == '__main__': socketio.run(app, host='0.0.0.0',…
Christopher Sheaf
  • 185
  • 1
  • 3
  • 13
0
votes
0 answers

Server-side Polling using flask-socketIO

I have a client-server setup built around the flask-socketIO framework. One of the applications is that the server repeatedly polls a database, and lets the client know in case of updates. Here is a simple version of the code that I have: The client…
statBeginner
  • 829
  • 2
  • 9
  • 23
0
votes
0 answers

Python Flask-Socketio

I tried to enter the post id of the user who posted something, and in the line of code: comment = Comments (comment = msg, author = current_user._get_current_object (), post_id), coment and author successfully entered into the database, but for…
0
votes
3 answers

Flask socketio with werkzeug DispatcherMiddleware and multiple WSGI apps: no connection

I've got a setup where I want to run multiple WSGI apps on one server and use a Flask-SocketIO socketio-server for communication in one of those apps. I've got my WSGI-apps served via gunicorn with eventlet, as is suggested by the Flask-SocketIO…
random_error
  • 365
  • 4
  • 16
0
votes
1 answer

Electron won't spawn flask-socketio server: ERR_CONNECTION_REFUSED

I am roughly following this and this to embed a flask server into an electron project. If I flask run the server then electron ., the connection is established. However, if I try to initialize the server during electron startup, the server never…
user7400603
0
votes
0 answers

flask socketio not starting

Trying to get a flask socketio app going. Here's my init.py import os from flask import Flask, logging from flask_socketio import SocketIO from flask_sqlalchemy import SQLAlchemy from config import app_config database = SQLAlchemy() socket_io =…
user3629892
  • 2,960
  • 9
  • 33
  • 64
0
votes
1 answer

Nginx + socketio: events not arriving

I want to send events to a flask server with socket io. But when I deploy my app via an nxginx proxy, the events don't arrive. My Flask server app.py looks like this: from flask_socketio import SocketIO app =…
bear
  • 663
  • 1
  • 14
  • 33