mirror of
https://github.com/actix/examples
synced 2024-11-23 14:31:07 +01:00
fix server-sent-events/drain.js (#615)
This commit is contained in:
parent
03c6bd8bea
commit
888123742c
@ -25,11 +25,10 @@ setInterval(() => {
|
||||
.on('error', () => {})
|
||||
.end()
|
||||
}
|
||||
}, 1)
|
||||
}, 0)
|
||||
|
||||
setInterval(() => {
|
||||
http
|
||||
.post('http://127.0.0.1:8080/', () => print_status(true))
|
||||
http.request({ ...query, path: '/' }, () => print_status(true))
|
||||
.setTimeout(100, () => print_status(false))
|
||||
.on('error', () => {})
|
||||
}, 20)
|
||||
|
Loading…
Reference in New Issue
Block a user