erento / nestjs-modules

NestJS modules
27 stars 4 forks source link

Question - Is there a way I can integrate this with firebase cloud functions? #5

Open Newbie012 opened 5 years ago

Newbie012 commented 5 years ago

Is there a way I can use this module so it can work on firebase cloud functions?

Meaning, to listen for publishes from the scheduler in cloud functions, I need to code something like that:

import * as functions from 'firebase-functions'
export const onPublishHello = functions.pubsub
    .topic('hello-topic')
    .onPublish(message => console.log('do the magic thing'));
rokerkony commented 5 years ago

Hi, thank you for the interest of using our module. I see it definitely possible in the future and any PR introducing it will be appreciated.

The most important would be to find a way to have 2 different providers (functions.pubsub & pubsub) and unify their API on our side.

Newbie012 commented 5 years ago

I would happily introduce a PR if I could. But I've been cracking my head trying to figure out how to do it