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
2
votes
0 answers

Live image proceesing in opencv using react native and flask backend

I want to process the live video frames from react native android app using flask based server. What will be the best ways to process and stream the video from app and send and receive the response from server in real time. Can it be done with…
2
votes
0 answers

Stream video to Flask app using flask_socketio

I have a video element whos src is set as the feed from my webcam. This is done using OpenCV (opencvjs). Using opencv, I read a frame and render it into a canvas. I then read the data from the canvas and using socketio, I emit to my server app,…
pookie
  • 3,796
  • 6
  • 49
  • 105
2
votes
0 answers

Text not updating on Asyncronous Webpage using flask-websockets

I am trying to get this webpage to update asynchronously using a python flask server and MQTT values coming in from Arduino devices. All values are coming through and getting saved correctly however the values do not show up on the webpage. I think…
2
votes
4 answers

How to get JavaScript Socket.IO version?

I use Flask and Flask-SocketIO inside of a Python application. Recently, when I start up the app, I am given this message: The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be…
Intrastellar Explorer
  • 3,005
  • 9
  • 52
  • 119
2
votes
0 answers

Python-Flask: Can a front-end client receive data streaming from a websocket connected to some company's service?

I have a dashboard with data that I would like updated in real-time from a subscribed websocket channel. I am currently using Flask and get updated data with request and response cycles. I am investigating Flask-SocketIO, but can't seem to figure…
2
votes
1 answer

React: efficient re-render of tables

I have a react + flask website. The frontend creates a socketio connection to the backend and after that the backend periodically sends data for the frontend to update. The data is a single dictionary. On each update I have to update a table in the…
Bob Sacamano
  • 699
  • 15
  • 39
2
votes
1 answer

Can't purge rabbitmq queue with pika

My producer code: conn_params = pika.ConnectionParameters('localhost', 5672, '/') connection = pika.BlockingConnection(conn_params) channel = connection.channel() channel.exchange_declare(exchange='direct_exchange', …
bumblebee
  • 121
  • 2
  • 10
2
votes
0 answers

send message to specific client from flask-socketio

I have a problem with my application. It works like this: I take the webcam stream from the web client ---- I send the frames to the server with socketio --- I execute an algorithm on the frames that allows me to obtain heartbeat, spo2, breathing…
2
votes
1 answer

How to make a logging handler log to flask-socketio

I want to write a record created by a logging handler to a webpage by passing that record through a Flask SocketIO socket (i.e. print the same log message I get at the console to a webpage). I see many handlers are available, but none of them appear…
Salvatore
  • 10,815
  • 4
  • 31
  • 69
2
votes
0 answers

Python Flask countdown timer not work syncing

I write my countdown timer works successfully but when i page refresh countdown timer resets. Countdown timer doesn't start if i don't open page and not sync work all clients. This is my server-side python flask code : from flask import…
skipsbiceps
  • 55
  • 2
  • 8
2
votes
0 answers

How do I list all connected clients in flask_socketio?

Is there any way to list every sid connected to a flask_socketio server? Trawling through the API documentation, every function to list sessions requires a room, and every function to list rooms requires a sid in that room.
dataduck
  • 588
  • 4
  • 14
2
votes
0 answers

configuring flask-socketio with nginx,gunicorn and supervisor

I am having hard time configuring flask-socketio to work with nginx,gunicorn and supervisor. Every thing works fine on local mechine i have tested all events and functions and they are working well. But I am unable to make it work on production…
kartoos khan
  • 409
  • 6
  • 22
2
votes
1 answer

flask-socketio emit from background task does't emit

Below is my code snippet, I'm running a background task and want to emit the id when the event is being called. manage.py from threading import Lock continue_reading = True thread = None thread_lock = Lock() socketio = SocketIO(app,…
Elad
  • 426
  • 1
  • 8
  • 20
2
votes
0 answers

Deploying Flask Socket.io application with eventlet on Google AppEngine

I am using flask socket.io configured with eventlet on a flexible google appengine instance. According to the flask socket.io documentation: https://flask-socketio.readthedocs.io/en/latest/ running socketio.run(app) will start a webserver if…
2
votes
1 answer

Flask SocketIO Emit with broadcast=true does not send message to sender

First time poster here. I am trying to put together a chatroom app using Flask-SocketIO and am having a hard time getting one tiny, but crucial, piece to work. When I call the emit method in the server and set the broadcast=True flag, the expected…