The channels feature is not supported. If you want to send different events to different users, you should use the event type feature instead. Also, connections cannot be closed externally. The running thread has to be killed.
- Install the python dependencies
pip install -r requirements.txt --user
cd /path/to/thonny/
PYTHONPATH=/path/to/thonny-sse_http_client/ python -m thonny
To listen for Server Sent events click on the "Tools" section in the menu at the top of the program. And then select "Listen for SSE". You will be asked to input a URL. This server immeadiately echoes the message you send. For testing purposes you can use this project and use the following URL: "http://localhost:5000/sse" To send HTTP GET requests you can click on the "Tools" section in the menu again and select "Send HTTP GET request" to send a message. After that, you will be asked for the URL. You can see all the communication on stdout.
This project is using third party projects and libraries.
Name | Website | License |
---|---|---|
thonny | https://thonny.org | MIT |
sseclient | https://github.com/btubbs/sseclient | MIT |
requests | https://requests.readthedocs.io | Apache 2.0 |