mirror of
https://github.com/tanrax/SSE-Fake.git
synced 2025-02-05 15:25:49 +01:00
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/
Events
Between 1 to 5 seconds, you will randomly receive one of the following messages:
- User connected
{
"action": "User connected",
"name": [random name]
}
- User disconnected
{
"action": "User disconnected",
"name": [random name]
}
- New message
{
"action": "New message",
"name": [random name],
"text": [random text]
}
Made with ♥️, Django, Channels and Django EventStream.
Author: Andros Fenollosa
Description
Languages
Python
64.3%
HTML
23.3%
JavaScript
4.6%
Dockerfile
2.8%
CSS
2.6%
Other
2.4%