Call your http server stack code using an in memory http listener. No sockets needed.
require('http').createServer((req, res) => {
if (req.url === '/hello') return res.end('world')
})
.listen(5000)
exports.http = require('azure-cloud-function-http-server')
require('./index.js')
TODO give example