1
0
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:
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', () => {}) .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)