mirror of
https://github.com/tanrax/SSE-Fake.git
synced 2024-11-14 19:45:41 +01:00
Update README.md
This commit is contained in:
parent
9996b1e14c
commit
fe34b1c14e
31
README.md
31
README.md
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user