Flask-SocketIO
mqtt-web-test
Our great sponsors
Flask-SocketIO | mqtt-web-test | |
---|---|---|
10 | 2 | |
4,678 | 0 | |
- | - | |
5.3 | 0.0 | |
5 days ago | about 1 year ago | |
Python | C++ | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Flask-SocketIO
-
I made a documentation driven web-socket framework
The framework is driven by the AsyncAPI specification, built on top of Flask-SocketIO. and inspired by Connexion.
-
Facing An Issue in Websockets
I don't know what module you're using for websockets, but looking at an issue posted on one of them, the thread should periodically sleep in order for I/O to function properly.
-
Flask socketio blocked by something during time.sleep
I'm running a Flask server on my local machine and am using it to pull data from a serial port and display it in real time on a webpage with Flask-socketio. I followed the example here and am encountering an interesting behavior. I was able to replicate the results of the example, but when I alter the background_thread function to include reading and parsing data from the serial port, something seems to be blocking the socket from sending the data. My code correctly establishes a socket and opens the connection, and can even emit messages correctly at the beginning of the thread function, but once it hits a time.sleep(5), emitting doesn't work anymore. Here's the original thread function that works (and includes a time.sleep()!):
-
How do i implement long polling for direct messaging between users?
https://github.com/miguelgrinberg/Flask-SocketIO/issues/1010 looks like flask socket io does not support waitress
-
Flask + RabbitMQ + SocketIO - forwarding messages
I have Flask application with SocketIO integration.Current user flow seems like 
-
What do you do when you just can't figure something out?
I think you're having this issue. https://github.com/miguelgrinberg/Flask-SocketIO/issues/1570
-
I want to use the flask web socket to display real time data on a webpage. Can someone please help me with this?
Check Miguel's flask-socketio examples.
-
Show logs in real time in browser
In terms of streaming anything to a client, I would suggest websocket functionality. There's a Flask-SocketIO package that can be used on the server side, and then on the client side you could use the built-in Javascript websocket functionality, or the Socket.IO library. That would allow you to push messages/data in both directions as needed... the server could just push data to the client whenever there's data to be pushed, and the client could handle that as needed.
- Trying out Flask, need questions about flask-socketio + MQTT configuration
-
How to constantly update a variable
GitHub Flask-SocketIO
mqtt-web-test
-
Question: receiving MQTT (+ flask-socketio) data to csv and displaying data to graph
An update to my question (i'd solved the text display), repo for reference. So now I wanted to store received data into csv. Reason is i will display in a graph/chart later. For some reason it doesn't work where I don't see the data being updated in csv. I used the example from here and here (base code is in here). With those example, my code is:
-
Trying out Flask, need questions about flask-socketio + MQTT configuration
I gonna post the repo here so you can check what's faulty there. I use DHT11_MQTT_Pub.ino to pub/sub with esp (although i can use mqtt_pub_test.py as dummy). Flask server is in mqtt-mosquitto-pi.py.
What are some alternatives?
django-channels - Developer-friendly asynchrony for Django
websockets - Library for building WebSocket servers and clients in Python
AutobahnPython - WebSocket and WAMP in Python for Twisted and asyncio
python-socketio - Python Socket.IO server and client
django-socketio - WebSockets for Django
WebSocket-for-Python - [Project on Hiatus] WebSocket client and server library for Python 2 and 3 as well as PyPy (ws4py 0.5.1)
Crossbar - Crossbar.io - WAMP application router
pusher django photo feed - A real-time photo feed using Django and Pusher
Flask-SocketIO-Chat - A simple chat application that demonstrates how to structure a Flask-SocketIO application.
network_performance_monitor - Network Performance Monitor - a portable tool for troubleshooting performance issues with home networks
dj-explorer - A web app for exploring SoundCloud DJ mixes