Closed laggingreflex closed 8 years ago
Yeah, looks good to me. Can you fix up the test or remove it and I'll merge it in!
Thanks
Updated. It also checks now whether app.server
if already exists is actually an http server. (app.server.constructor.name
should be "Server"), just in case.
Updated tests.
Thats awesome!
Thanks!
publish to npm please
Yep, all in 4.1.0. I was going to add some other stuff but that'll take longer so it's up now.
Checks to see if
app.server
exists, if so, uses that, if not, creates one.Wraps
app.listen
with warning only ifapp.server
was created here.Doesn't throw error if
app.server
exists (this is causing to fail 1 test inattach.test.js
'should not alter a koa app that already has .server')