https://github.com/tanrax/sse-fake
Free fake Server-send Events for testing and prototyping.
https://github.com/tanrax/sse-fake
fake server-sent-events sse
Last synced: 8 months ago
JSON representation
Free fake Server-send Events for testing and prototyping.
- Host: GitHub
- URL: https://github.com/tanrax/sse-fake
- Owner: tanrax
- Created: 2022-02-28T17:23:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T08:13:37.000Z (over 1 year ago)
- Last Synced: 2025-01-14T05:50:13.544Z (9 months ago)
- Topics: fake, server-sent-events, sse
- Language: Python
- Homepage: https://sse-fake.andros.dev
- Size: 35.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# SSE Fake
Free fake Server-send 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/
```## Docs (events)
https://sse-fake.andros.dev/
---
Made with ♥️, Django, Channels and Django EventStream.
Author: [Andros Fenollosa](https://andros.dev/)