Update README.md

This commit is contained in:
Andros Fenollosa 2022-03-04 11:39:11 +01:00 committed by GitHub
parent 9996b1e14c
commit fe34b1c14e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,37 +20,10 @@ Or from the terminal:
curl https://sse-fake.andros.dev/events/
```
## Events
## Docs (events)
Between 1 to 5 seconds, you will randomly receive one of the following messages:
https://sse-fake.andros.dev/
- User connected
``` javascript
{
"action": "User connected",
"name": [random name]
}
```
- User disconnected
``` javascript
{
"action": "User disconnected",
"name": [random name]
}
```
- New message
``` javascript
{
"action": "New message",
"name": [random name],
"text": [random text]
}
```
Made with ♥️, Django, Channels and Django EventStream.