flask-socketio Questions
4
I have an app that will convert audio file to text. Using flask and flask-socketio. It works perfectly when I run it using: "python run.py", but when I run it using: "gunicorn -k eventlet -b 0.0.0....
Halflength asked 3/2, 2020 at 8:55
2
Solved
I have a backend with two flask servers. One that handles all RESTfull request and one that is an flask-socketio server. Is there a way how I can share the session variables (Logged in User etc.) b...
Suanne asked 18/3, 2017 at 21:14
3
Solved
Can someone explain me difference between socket, socketio, flask socketio with respect to python?
And for using it this socket with flutter what code should I write on backend? Like I should write...
Jessie asked 20/6, 2020 at 9:4
1
I am using flask-socketio to make a socket connection from my python web server to the javascript client. I am able to establish the connection but it breaks in a while(5 seconds or so) with the er...
Keelby asked 9/4, 2018 at 10:2
3
Solved
I have been following this tutorial to try and get Flask SocketIO running using nginx and gunicorn.
nginx
server {
location / {
proxy_pass http://127.0.0.1:8000;
proxy_redirect off;
proxy_se...
Groot asked 19/6, 2015 at 11:4
2
Solved
I am struggling to find any documentation about a timeout value for socket.io. I am using //cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/socket.io.min.js on the client and Flask-SocketIO on the ...
Lucas asked 26/11, 2014 at 21:29
1
Solved
I am currently working on extending my existing REST API created using Flask-RESTPlus with WebSocket support. The idea is to create a Web Thing Model compliant Web Thing (Gateway). The "Things" in ...
Rhines asked 6/1, 2020 at 17:15
1
I have almost read every piece of article available on the internet but nothing seems to work for my case. I have installed flask-socketio and everything works fine until I emit the messages from a...
Selfexplanatory asked 13/12, 2019 at 10:5
1
Solved
I need help in debugging -the Same Origin Policy disallows reading the remote resource at https://some-domain.com. (Reason: CORS request did not succeed) in python flask-socketio error.
I am worki...
Subservient asked 20/8, 2019 at 5:9
2
Solved
I wrote this simple flask-socketio code:
from flask import Flask
from flask_socketio import SocketIO, send
app = Flask(__name__)
app.config['SECRET_KEY'] = 'mysecret'
socketio = SocketIO(app)
...
Wittgenstein asked 31/5, 2018 at 21:1
1
Solved
I tried the following:
@socketio.on("signup req")
def signup_req(json):
print(f"Response! {json}")
socketio.emit("signup res", "RECEIVED!")
session["user"] = {"name": json["name"]}
but when I...
Topmast asked 22/4, 2019 at 11:21
0
Case 1
Suppose you have a Python Flask application and you want to socketize it - you do the standard:
app = Flask("MyApp")
socketio = SocketIO(app)
Case 2
Suppose you have a Python Flask app...
Billetdoux asked 22/1, 2019 at 14:7
3
I am always getting this error when running my Flask App with Websockets.
I have tried to follow this guide - http://blog.miguelgrinberg.com/post/easy-websockets-with-flask-and-gevent
I have a fla...
Evetteevey asked 28/3, 2015 at 17:19
2
Solved
Hello I'm trying to setup flask-socketio in a docker container.
It seems to run but I get an error( from the browser) when I try to access localhost on port 5000 like I'm used to do with flask app...
Janel asked 19/8, 2018 at 17:43
1
I have a flask app that runs both flask and flask-socketio endpoints. When i went to deploy on google App engine, i realized that websockets are not supported by app engine. this means that i need ...
Mccoy asked 6/7, 2018 at 17:25
2
How do you flush a flask-socketio emit event so that multiple lines stream to the client, as opposed to multiple lines all coming through at one time?
I'm working with Flask and flask-socketIO to ...
Wyne asked 22/9, 2015 at 15:16
2
Solved
I'm working on a Flask-SocketIO server that works just fine.
However, I'm getting lots of requests like this in my server log:
"GET /socket.io/?EIO=3&transport=polling&t=LBS1TQt HTTP/1....
Illinois asked 13/2, 2016 at 19:19
1
Solved
Currently, I´m working on a tool which shows the current price of one Bitcoin. Every minute, the price is updating with making a request with SocketIO which emits then the current price.
Now my is...
Sinuous asked 17/12, 2017 at 12:8
1
Solved
socketservice.py:
from flask import Flask, render_template
from flask_socketio import SocketIO, emit
from backend.database import db
app = Flask(__name__)
socketio = SocketIO(app, engineio_logger...
Livi asked 7/10, 2017 at 16:19
1
Solved
In my project I am using a React front-end and a Flask server with a RESTful API. The basic functionality is that the front-end fetches data from the server and displays it. This works fine, but I ...
Chancelor asked 15/9, 2017 at 18:36
1
Solved
I'm trying to use Flask Restful and Flask SocketIO at the same time. I already made a Flask Restful application but now I want to use Flask SocketIO to have realtime communication between client an...
Geometrize asked 9/9, 2017 at 17:17
2
I'm trying to create a python app that can send message from server to client. Currently I'm using this sample code from here. It's a chat app and it's working fine. I tried to modified the app and...
Bastille asked 28/8, 2017 at 12:18
1
Solved
I have an application using Flask and FlaskSocket.IO 2.8.4. When I initialise SocketIO, I am using
#[...]
logging.basicConfig(level=logging.DEBUG,format='[%(asctime)s][%(levelname)s] - %(funcNam...
Pheon asked 19/4, 2017 at 5:39
1
Solved
I'm working with a flask app that's currently launched as follows:
The starting command is python -m flask run, where FLASK_APP pointing to __init.py__.
__init.py__ simply sets a variable app to ...
Pilaf asked 21/11, 2016 at 10:39
1
Solved
I have a Python web application in which the client (Ember.js) communicates with the server via WebSocket (I am using Flask-SocketIO).
Apart from the WebSocket server the backend does two more thi...
Symbol asked 15/10, 2016 at 11:59
© 2022 - 2025 — McMap. All rights reserved.