mirror of
https://github.com/tanrax/SSE-Fake.git
synced 2024-11-14 11:35:41 +01:00
Free fake Server-send Events for testing and prototyping.
.github | ||
app/website | ||
sse_fake | ||
static | ||
.gitignore | ||
Caddyfile | ||
compose.deploy.yaml | ||
compose.yml | ||
django-launcher.sh | ||
Dockerfile | ||
manage.py | ||
nginx.conf | ||
README.md | ||
requirements.txt |
SSE Fake
Free fake Server-send 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