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
0
votes
1 answer

webpage only can get the latest state of background process by refresh the webpage

I have a painful problem. I use Flask-SocketIO to update the some states of background process onto webpage. For my example, my app is put in machine A with IP 170.8.8.8 monitoring port 5000, and I put nginx in machine B with IP 170.8.8.9 also…
JustinGong
  • 399
  • 1
  • 4
  • 17
0
votes
0 answers

wss handshake error 200 when connecting to flask socketio

I have a flask server and an angularjs front end. I am trying to create a websocket that makes 3rd party API calls and spits out the results in an async fashion (using celery). The current implementation works perfectly on my localhost dev…
galeej
  • 535
  • 9
  • 23
0
votes
1 answer

Errors in pip install flask-socketio

I am trying to install flask-socketio from terminal pip install flask-socketio but it keep showing me the following error(in bold): Collecting flask-socketio Using cached Flask-SocketIO-2.9.2.tar.gz Requirement already satisfied: Flask>=0.9 in…
pragya.go
  • 169
  • 4
  • 13
0
votes
0 answers

flask-socketio, flask-sqlalchemy and pytest-selenium

I am trying to add Selenium tests to a Flask application that relies heavily on Flask-SocketIO. However, when accessing a page from the Selenium browser that does a database query, I get the following error message in the browser window: Traceback…
Bart Van Loon
  • 1,430
  • 8
  • 18
0
votes
1 answer

Python FTP get file from as400

I have a simple code (using Flask-SocketIO and ftplib) for downloading csv file from as400 machine, but I got an exception which I do not understand... Do you know what the problem is? The code I have: try: localFile = open(localDir + '/' + iso…
KissLick
  • 37
  • 2
  • 7
0
votes
1 answer

Flask Rest API: how to switch to using sockets from AJAX?

I've been trying websocket-client and socketio-client with no luck so far. The broad picture of what I want to accomplish is this: Currently, I have a Flask Rest API that has both a web front-end and a command line interface, and it handles several…
0
votes
0 answers

How to show calendar on socket emit inside the page?

I've created a small app in Flask that allows the users to book on the calendar . I want just the subscribed user to make an appointment, if the current_user is not a subscriber , a message you get in place of the calendar that says 'you must be a…
makmani
  • 91
  • 2
  • 14
0
votes
1 answer

Flask-SocketIO not recieving messages from front end when used with RabbitMQ

I'm trying to setup my Flask app to use RabbitMQ as a message queue. It works fine if I emit messages from the server but if I try to emit messages nothing happens. It seems like the front end socket is not communicating with the queue. My socket…
Neill Herbst
  • 2,072
  • 1
  • 13
  • 23
0
votes
0 answers

Flask-SocketIO + Nginx: 502 connecting refused

This error appears only when i connect from android application using mobile internet, but via wifi all works. nginx error.log: connect() failed (111: Connection refused) while connecting to upstream, client: 79.143.100.252, server: 0.0.0.0,…
0
votes
1 answer

Flask Socket.IO giving Redis error but I am using RabbitMQ

So I am making an app in Flask and I am using RabbitMQ as message broker and also backend Celery worker. I also use SocketIO in order to report back the celery worker status to the client. When I am running my app I get the following error: I…
Pooneh
  • 67
  • 2
  • 10
0
votes
0 answers

Exceptions after losing websocket connection with (flask-) socketio in python

I am currently experimenting with websockets and have setup a small server: from gevent import monkey monkey.patch_all() import socketio from flask import Flask, render_template, request from flask_socketio import SocketIO app =…
Birne94
  • 636
  • 8
  • 21
0
votes
0 answers

Error while creating a notification, `got multiple values for keyword argument 'user'`?

All my problem is, i can't create notification and push it after sending a message to a specific user, am getting this error every time: File "/home/reznov/.local/lib/python2.7/site-packages/flask_login/utils.py", line 228, in decorated_view return…
reznov11
  • 143
  • 4
  • 16
0
votes
2 answers

Unable to push flask-socketio app to heroku

I have been attempting to push my flask app running socketio to Heroku, but to no avail. I have narrowed it down to the Procfile. I am constantly getting 503 server errors because my program doesn't want to be connected to. I tested it locally…
bsteven48
  • 59
  • 7
0
votes
2 answers

Python. Cannot make a request to simple site api. Flask and requests

I am trying to create simple API for my site. I created the route with flask: @api.route('/api/rate&message_id=&performer=', methods=['POST']) def api_rate_msg(message_id, performer_login): print("RATE API ",…
0
votes
0 answers

How to communicate nucleo-f429(socket.io- client) with python(socket.io-server)?

I want to communicate between stm32f4 ,which will work as a socket.io client with Python , which will work as a socket.io server.
Meera
  • 57
  • 2
  • 11