flask-socketio Questions

4

function i am trying to call from my flask-socketio server from flask_socketio import emit import asyncio async def myfunc(): for i in range(10): j = 1*3 await emit('update', {'j':j}) in my...
Halona asked 3/7, 2019 at 14:27

2

so i'm doing my final project. i want to get head pose estimation from client webcam. i succesfully stream the webcam to server with websocket. but when i try to put my head pose function inside th...
Pictorial asked 3/5, 2020 at 17:52

4

I've been running a dockerized flask application that uses Celery to run tasks. To run the app I'm using gunicorn with eventlet and It's been working fine using alpine linux distribution. However ...
Roesch asked 28/10, 2019 at 10:19

3

I am using socket io and flask application.Everthing works except I always get this message. This is my initialization: app = Flask(__name__) app.config['SECRET_KEY'] = APP_SECRET_KEY jwt = JWTMan...
Oakland asked 2/4, 2020 at 12:45

7

Solved

I'm trying to run a client an server in python using flask_socketio, socketIO_client and SOCKET.IO in a raspberry pi 4 but I'm getting the following error: The client is using an unsupported versio...
Bollay asked 5/2, 2021 at 19:8

2

I know that someone will face this problem. I had this problem today, but I could fix it promptly, and I want to share my solution: Problem: from flask_socketio import SocketIO You will receive an...
Carrington asked 16/1, 2023 at 17:32

4

I am getting the following error when I try to run the backend of my web application: ImportError: cannot import name 'run_with_reloader' from 'werkzeug.serving'. It is coming from within the \lib\...
Sain asked 13/4, 2022 at 1:59

4

Solved

I'm trying to create an autostart service for my python-flask-socketio server. I need to start a python script through systemd. Here's my service code: [Unit] Description=AppName [Service] Type...
Dabbs asked 10/7, 2017 at 12:43

1

I'm using a redis docker container to be used as a message/ broker queue for celery and flaskk-socketio in my python app and lately my redis instance is crashing pretty often, and it doesn't come b...
Casabonne asked 15/8, 2019 at 12:27

3

Solved

I am currently working on a project that uses Flask-SocketIO to send things over the internet, but I came across this question. Question: Is there any way to send images in Flask-SocketIO? I did...
Ptolemaist asked 20/11, 2018 at 19:11

2

Solved

I'm currently trying to understand how sockets work. I'm using Flask-socketio and a python socketio client and running through a basic example. Here is what I have done so far app.py from flask i...
Tensity asked 9/1, 2018 at 1:0

2

Solved

I have a flask-socket.io application that is pretty standard: server: eventlet I start the app using: socketio.run(app, host='0.0.0.0') Frequently but not always I have some kind of timeout: Tra...
Bonze asked 18/12, 2017 at 19:16

3

I'm running a Flask application with socketio to deal with notifications. The Flask app is listening at port 5000 and the client is in 8080. the js client is always getting this error: VM15520:1 ...
Curricle asked 3/3, 2019 at 10:9

0

Cluster information: Kubernetes version: 1.20 Installation method: Helm chart Nginx image: k8s.gcr.io/ingress-nginx/controller:v0.45.0 I am running a flask server with flask-socketio connections on...

3

Solved

Im trying to create connection between flask socketio and react native socketio, I have already prepared client side with react native socketio BUT I have run into problem with importing flask_sock...
Maletta asked 27/10, 2020 at 17:25

2

When I try to use the functionality that uses websockets in my application, I get this error in the console: File "/Users/user/venv/lib/python3.7/site-packages/simple_websocket/ws.py", li...
Cyclist asked 17/6, 2021 at 12:37

1

I have a Flask application that won't run when gevent is installed. Here is my app.py file: from app import create_app, socketio app = create_app() if __name__ == '__main__': socketio.run(app) ...
Marinmarina asked 12/6, 2021 at 15:12

2

Solved

I am making a chat application using flask-socketio and now I want to emit a message to server with client's username when a client gets disconnected i.e. when client closes browser/tab so that I c...
Musso asked 13/6, 2020 at 5:30

2

Solved

I have a simple Flask chat application that I am testing out coming from a tutorial. Supposedly I just need to run it using the "python app.py" command but when I access it via http://localhost:500...
Loudhailer asked 7/8, 2019 at 14:58

2

I have a Web App built in Flask where tweets are captured (using Tweepy library) and displayed on the front-end. I used Socket IO to display the tweets live on the front-end. My code works fine whe...
Neighbors asked 20/1, 2021 at 21:21

3

Solved

I am in the situation where I receive a message from the client. Within the function that handles that request (@socketio.on) I want to call a function where some heavy work is done. This should no...
Collusion asked 3/1, 2016 at 20:29

2

Solved

I am trying to build a client server architecture where I am capturing the live video from user's webcam using getUserMedia(). Now instead of showing video directly in <video> tag, I want to ...
Doggone asked 19/11, 2019 at 10:28

1

Solved

From the deployment section in the documentation, Gunicorn can only work with 1 worker process with Flask-SocketIO. I was wondering what is the preferred way to deploy a flask-socket-io server? Cur...
Cogon asked 7/9, 2020 at 5:48

3

I am building an API that uses Waitress, Flask, and Flask_SocketIO in Windows. Everything works fine from the command line, but when I try to bundle my API into an .exe using cx_Freeze and then run...
Transient asked 11/1, 2019 at 16:54

2

I have a flask-socketio app hosted on heroku with the following Procfile : web: gunicorn --worker-class eventlet hello:app Ever since I switched to socketio, the app has been behaving inconsiste...
Curtsy asked 10/1, 2016 at 16:52

© 2022 - 2024 — McMap. All rights reserved.