1,088 questions
0 votes
0 answers
33 views
flask-scoketio: emitting from an external process without a message queue
I am developing a project using flask, flask-socketio, and the Multiprocessing python libraries. My site runs on localhost (127.0.0.1:5000). The goal is to update the html template every second from ...
0 votes
1 answer
44 views
Socketio background task issues with pubsub subscription
I am running a gunicorn server with 1 eventlet worker through which I communicate with the FE via websockets. However, I also need to listen to an external pod running some code that will emit a redis ...
0 votes
1 answer
57 views
Flutter web + flask_socketio: flutter app can't connect to flask socketio
I am trying to run a Flutter web frontend and a python flask + flask_socketio api/socketio backend in a docker compose file. The frontend image uses nginx as a reverse proxy, and its configuration ...
0 votes
1 answer
177 views
Server.emit() got an unexpected keyword argument 'broadcast' with Flask-SocketIO
Note: There is a discussion at GitHub but nothing was concluded. I am getting error - "Server.emit() got an unexpected keyword argument 'broadcast'" after python update from 3.8 to 3.11 in ...
2 votes
1 answer
41 views
SocketIO in React app does not capture emitted event
I am trying to build a Leaderboard that updates real-time based on redis stream events. So I have this code in my frontend component that ultimately should be getting the latest updates real-time from ...
0 votes
0 answers
37 views
RevPi connection using Websockets
I am trying to connect a revpi to a windows pc to exchange input events using websockets. The server(revpi) looks as such: @app.route('/init', methods=['GET']) def initialize(): rpi.io.O_Unlock....
1 vote
2 answers
115 views
Run a simple flask web socket on Render
I'm new to Render , and I make a simple flask web socket I use these modules: ,flask_socketio ,flask ,gunicorn (to run my script on Render host) Here is my code for server side: from flask import ...
0 votes
2 answers
140 views
Use Flask-SocketIO to send messages continuously
I would like to build an application to monitor files on my local computer through the browser. I have written a minimalistic example to illustrate this. The frontend should be able to request ...
1 vote
1 answer
83 views
How to Store WebSocket Data Per User or session in Flask Using flask-sock
I'm developing a Flask web application and using flask-sock for WebSocket communication. I need to pass WebSocket data received in send_output_with_context into filtered_chat_memory inside the index ...
0 votes
1 answer
116 views
Why azure viseme data is not completely generated in linux?
So Im trying to generate speech and viseme data for my animation using azure services. But I have a problem when I run the exact same code in the Linux ubuntu 22.04. When I run it in windows 11 with ...
0 votes
1 answer
37 views
emit Broadcast with flask_socketio
I have a flask server running, and sockets are connection successfully. I want to run a service that monitors stuff on my server, such as GPU usage with GPUMonitorService, and the broadcast that data ...
-1 votes
1 answer
25 views
Two functions reach the identical socketio.emit line. One emits the other doesn't. Can't wrap my head around it
from flask import Flask, send_from_directory from flask_socketio import SocketIO import time import threading import os import serial # Serial Configuration (Modify COM Port if needed) SERIAL_PORT = &...
0 votes
0 answers
41 views
flask socketio backgroundtask stops after http post
Anytime I sent a post request to /tts/say or any other post request, the background task stops. Why is that and most importantly, how can I stop this behavior? I wasn't able to find more useful ...
0 votes
1 answer
39 views
socket.io.emit() not running inside redis function
I'm building a Flask application where I use Redis to receive data from a server, and then send that data to the frontend using Socket.IO. However, the emit() function is not sending the data to the ...
0 votes
0 answers
55 views
Client can send but not receive. (server: Flask SocketIO python) (client: socket.io.min.js)
I've got about 100 lines of code that require some expertise. I'm working on a classic client-server structure using flask and websockets. The communication from the client to the server works fine, ...