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('google-cloud-function-http-server') require('./index.js')service: test provider: name: google runtime: nodejs8 project: x credentials: ~/.gcloud/keyfile.json plugins: - serverless-google-cloudfunctions functions: proxy: environment: SERVER_PORT: "5000" handler: http events: - http: path