Replies: 1 comment
-
const Koa = require('koa')
const app = new Koa()
const server = app.listen(8000, () => { console.log('listening') })
setTimeout(() => { server.close(() => { console.log('closing') }) }, 1000) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does server/app.close exist in koajs or no more?
Beta Was this translation helpful? Give feedback.
All reactions