Replies: 2 comments
-
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
-
const http = require('http')
const Koa = require('koa')
const app = new Koa()
const fn = app.callback()
const server = http.createServer(fn)
server.listen()
server.close() |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Does server/app.close exist in koajs or no more?
Beta Was this translation helpful? Give feedback.
All reactions