SSE-Fake/README.md

32 lines
520 B
Markdown
Raw Normal View History

2022-03-04 11:33:29 +01:00
# SSE Fake
Free fake Server-side Events for testing and prototyping.
## 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/)