flask socketio CORS

I've been trying to send data from flask over socket io. I need to access this data from a different origin, but it is giving a CORS error. I have tried using all kinds of cross origin stuff and...

Python - Flask-SocketIO send message from thread: not always working

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...

Using supervisor to run a flask app

I am deploying my Flask application on WebFaction. I am using flask-socketio which has lead me to deploying it with a Custom Websocket App (listening on port). Flask-socketio's instructs me to...

How to access formData in flask sent using websockets?Flask-SocketIO

How to access form data sent to Flask using web sockets? I receive invalid frame header in google chrome developer tools->console. Extract from my javascript code: var form_data = new...

Custom handshake data with Flask-SocketIO

I have a Python server using Flask, that has a websocket connection using Flask-SocketIO . There is a similar question :...

React with Socket.io - continously re-render on "socket.on" event

I'm trying to write a client that opens a socket.io connection with a server and then continuously re-renders the screen with an updated number that is sent from the server through the socket. I...

Closing Flask-SocketIO gracefully in python

I'm using flask-socketio for server side in python. When running on windows10 the .stop() function of the flask_socketio.SocketIO works and closes the socket which terminates my script but on...

Deploy flask-socketio on beanstalk

I can't quite get Flask-SocketIO working with my instance on AWS Elastic Beanstalk (ELB), with the requirement of running Flask-SocketIO with socketio.run(application), ELB appears to make the...

Flask-SocketIO send images

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...

Flask-SocketIO and 400 Bad Request

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...

Flask Socket IO not Responding to WebSocket

I'm trying to create a Websocket connection from Brython to a local server running Flask and Flask-SocketIO. The Brython code can connect to the Websocket echo server but when trying to use a...

Cannot emit message to room using Flask-SocketIO

I am building a simple chat app and I have been trying to emit messages to rooms with Flask-SocketIO. The "mesage_event" event from the client reaches the server well, but then, I cannot see...

Flask server not starting for SocketIO

I am trying to make a chat app using SocketIO and following this video: https://www.youtube.com/watch?v=RdSrkkrj3l4 and the corresponding GitHub code:...

What is the best way for a Python script to communicate with a Python Flask server that transports content to the client?

The following scenario: I have a Raspberry Pi running as a server. Currently I am using a Python script with Flask and I can also access the Raspberry Pi from my PC. (The flask server runs an...

Flask MQTT on_connect is never called when used with SocketIO

I am trying to implement an MQTT to Web Socket bridge on the lines of https://flask-mqtt.readthedocs.io/en/latest/usage.html#interact-with-socketio In the above example, subscribing to the MQTT...

Running Asyncio and Socketio at the same time in python

I want to run two websockets on in my program, where one communicates to my Raspberry Pi (via websockets) and the other one to my browser via Flask-SocketIO. Everything runs fine, when I run them...

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...

How do i properly install flask-socketIO?

I have installed multiple times Flask-socketio on my mac, closely reading the instructions and installing the requirements (eventlet/gevent). Athough when i run my simple code to test, it either...

Pip can't install flask-socketio

I want to install the module flask-socketio using pip2, however I get an error, that no matching bidict version was found. I looked bidict up, and it turns out, that the version doesnt even...

Flask socketio, how to create room per user?

I'm creating a notifications service, and need to store one user in one room to send him notification to all opened tabs. How can I put user per room? I had authorization, where users had...

How to enqueue a function with an argument with Redis Queue?

I want to enqueue a function to run on background (using Redis Queue) and send a message to the client once the function is done, so I use Flask SocketIO using send(msg) after background task is...

Eventlet heroku flasksocketio app not working

I'm Having lots of trouble deploying my Flask app that uses websockets to heroku. It works fine with heroku local and even works fine when the same command in run locally. web: gunicorn...

Nginx, flask-socketio - blocked by CORS policy

I have a flask-socketio server running on ubuntu with nginx. I have a client calling the server. When I try to call the server I receive the following error: has been blocked by CORS policy: The...

Android Studio Socket.io disconnecting and reconnecting every few seconds

I have a setup right now where I am running a flask server that handles websocket communication between and android phone and a raspberry pi node.js socket.io client. The android socket.io can...

Flask Socketio | Update and plot a chart using background tasks created by Flask Executor or ThreadPoolExecutor

I am currently trying to successfully plot a bar chart when the results from the dataframe is updated or when there is any change in the...

Flask Session loses login session data on refresh

I'm currently building a Chat App using Flask and Flask Socketio. In order to save the client's current chat-room, I use the flask_session module with the session type "filesystem". I also use...

Python Tkinter with Flask API and Subprocess

Could I run a function from another python file inside subprocess? I use pyinstaller to convert the tkinter to an executable file. As much as possible I would like to deploy/run the .exe file to...

Websocket Connection Error Insufficient Resources

I'm developing a chat app where two users can talk to one another and I'm doing this with flask-socketio and React. I've been struggling with trying to figure out this issue I'm getting with...

pathlib: cannot import name 'Sequence' from 'collections'

It has been a few days since I rebuilt my project but when I was testing some things this morning I wanted to update my Werkzeug package due to an issue I was having with its Multidict class, I...

flask socketio background thread restart or stop while it's sleeping

I've implement a webpage, the user can change settings for how often the background task repeats. The thread always have to wait for the sleep ends, what I want is I can interrupt the sleep, and...