mirror of
https://github.com/tanrax/SSE-Fake.git
synced 2024-12-28 01:25:34 +01:00
Free fake Server-send Events for testing and prototyping.
.github | ||
app/website | ||
sse_fake | ||
static | ||
.gitignore | ||
Caddyfile | ||
django-launcher.sh | ||
docker-compose.yml | ||
Dockerfile | ||
manage.py | ||
README.md | ||
requirements.txt |
SSE Fake
Free fake Server-side Events for testing and prototyping.
Try it
Run this code in JavaScript or from any site:
const sse = new EventSource("https://sse-fake.andros.dev/events/");
sse.onmessage = function(event) {
console.log(event.data);
}
Or from the terminal:
curl https://sse-fake.andros.dev/events/
Docs (events)
Made with ♥️, Django, Channels and Django EventStream.
Author: Andros Fenollosa