mirror of
https://github.com/actix/examples
synced 2024-11-23 22:41: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', () => {})
|
.on('error', () => {})
|
||||||
.end()
|
.end()
|
||||||
}
|
}
|
||||||
}, 1)
|
}, 0)
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
http
|
http.request({ ...query, path: '/' }, () => print_status(true))
|
||||||
.post('http://127.0.0.1:8080/', () => print_status(true))
|
|
||||||
.setTimeout(100, () => print_status(false))
|
.setTimeout(100, () => print_status(false))
|
||||||
.on('error', () => {})
|
.on('error', () => {})
|
||||||
}, 20)
|
}, 20)
|
||||||
|
Loading…
Reference in New Issue
Block a user