1
0
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:
Michael Clayton 2023-03-29 22:57:54 -04:00 committed by GitHub
parent 03c6bd8bea
commit 888123742c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)