Questions tagged [flask-sockets]

Flask-Sockets is a Flask extension which makes it easier for developers to use Web Sockets in their Flask projects.

Flask-Sockets is a Flask extension which makes it easier for developers to use Web Sockets in their Flask projects.

39 questions
1
vote
0 answers

Flask SocketIO connection faild on production

I just deployed my flask application on development server after i checked that the socketio works well on regular run server and also using gunicorn with eventlet on local, Now i deployed my flask app and it runners well when i open any page (HTTP)…
AmrElsayed
  • 21
  • 7
1
vote
1 answer

How to connect flask scoketIO to my flutter chat APP

How to connect my flutter app to flask_socketIO python ? In flutter i am making a chat APP whose backend to fetch the users is in flask bakcend. So how should i connect both of them ?
Atul Dubey
  • 63
  • 1
  • 5
1
vote
0 answers

Client is gone, closing socket in flask-socketio

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 Usage Module -i…
1
vote
0 answers

I am trying to create simple flask_sockets client-server, but getting 404

I'm trying to make a socket connection between two python files for testing. My server should be uploading some data to clients that are listening. I'm trying to test it by creating some dummy client. After client connects, I'm getting…
siadajpan
  • 55
  • 6
1
vote
1 answer

Connecting Flask app to a Websocket server

Not able to connect a Flask app as a websocket client to another websocket server. I tried to look around how to implement this, but the only solution i found is when the connection is Short-lived one-off send-receive. So, when I make a Long-lived…
kendhia
  • 199
  • 13
1
vote
1 answer

Send WebSocket message from Flask view

I'm trying to make a Flask app that uses WebSockets. The example from Flask-sockets works but how would I send a message from a regular view? Similarly to how Flask-SocketIO use .emit() and .send()-methods. In the example below (from the…
tiktuk
  • 485
  • 7
  • 19
1
vote
1 answer

Worker timeout when using flask-sockets

I'm trying to support websocket in a existing flask restful app which set the gunicorn timeout to 20 seconds. I decided to use flask-sockets extension and things goes well except the greentlet would timeout after 20 seconds. I assume that the…
bayi
  • 21
  • 4
1
vote
0 answers

Using gevent and Flask to implement websocket, how to achieve concurrency?

So I'm using Flask_Socket to try to implement a websocket on Flask. Using this I hope to notify all connected clients whenever a piece of data has changed. Here's a simplification of my routes/index.py. The issue that I have is that when a websocket…
Jad S
  • 2,705
  • 6
  • 29
  • 49
1
vote
1 answer

flask-sockets and ZeroMQ

I'm playing around with getting zeromq pub/sub messages sent up to a browser with a websocket. The following "works", in that messages do get sent up through a websocket. However, trying to reload the page just hangs, as I'm guessing the while True…
reptilicus
  • 10,290
  • 6
  • 55
  • 79
1
vote
1 answer

How to connect to Flask-WebSocket server?

I am following this tutorial to try and use Flask-WebSockets in my app. http://blog.miguelgrinberg.com/post/easy-websockets-with-flask-and-gevent My problem is that I don't know how to properly connect to the server. When I make calls to my flask…
user2268507
1
vote
0 answers

How to use flask websockets?

I am trying to use flask and flask_sockets for a project. I don't understand the event model here and the lack of detailed documentation doesn't help either ? Can you explain to me, what exactly is happening so that I could use this…
Diadara
  • 591
  • 1
  • 3
  • 20
0
votes
1 answer

Handling async streams in flask with twilio

I have a basic flask app to serve twilio calls. When a call is generated via twilio it goes to my /test http api. In this api I'm generating a twiml conversation where the first thing that happens is a verb just saying "hello world". Then,…
Kevin Cohen
  • 1,211
  • 2
  • 15
  • 22
0
votes
1 answer

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 says that i have not imported the modules or show…
0
votes
1 answer

Socket handshake error when using gunicorn

I have a flask app that processes a web socket stream of audio from Twilio. The app works fine without gunicorn but when I start it with gunicorn I get only the first message of the socket (connect) and an unsuccessful handshake. Here is how the app…
Leo
  • 900
  • 1
  • 11
  • 26
0
votes
1 answer

Can't send message to client with flask_socketio

i'm trying to implement very basic usage of flask_socketio to send some data to client. The code is following: server.py: from flask import Flask, render_template from flask_socketio import SocketIO, emit from config import Config app =…
mr_bulrathi
  • 514
  • 7
  • 23