`/* npm dependencies /
import http from 'http'
/* local dependencies /
import app from './app'
import io from './socket.io'
import config from './config'
io.attach(app)
const server = http.createServer(app.callback())
.listen(config.port, () => {
console.log(Server running on port ${config.port})
})
export default server
`
I'm trying to create the server without using the app.listen() provided by koa.
`/* npm dependencies / import http from 'http' /* local dependencies / import app from './app' import io from './socket.io' import config from './config'
io.attach(app) const server = http.createServer(app.callback()) .listen(config.port, () => { console.log(
Server running on port ${config.port}
) })export default server `
I'm trying to create the server without using the app.listen() provided by koa.