SSE-Fake/README.md

32 lines
520 B
Markdown
Raw Permalink Normal View History

2022-03-04 11:33:29 +01:00
# SSE Fake
2022-07-19 22:36:51 +02:00
Free fake Server-send Events for testing and prototyping.
2022-03-04 11:33:29 +01:00
## Try it
Run this code in JavaScript or from any site:
``` javascript
const sse = new EventSource("https://sse-fake.andros.dev/events/");
sse.onmessage = function(event) {
console.log(event.data);
}
```
Or from the terminal:
``` bash
curl https://sse-fake.andros.dev/events/
```
2022-03-04 11:39:11 +01:00
## Docs (events)
2022-03-04 11:33:29 +01:00
2022-03-04 11:39:11 +01:00
https://sse-fake.andros.dev/
2022-03-04 11:33:29 +01:00
2022-03-04 11:39:56 +01:00
---
2022-03-04 11:33:29 +01:00
Made with ♥️, Django, Channels and Django EventStream.
Author: [Andros Fenollosa](https://andros.dev/)