nestjs-modules icon indicating copy to clipboard operation
nestjs-modules copied to clipboard

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

Open Newbie012 opened this issue 7 years ago • 2 comments

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'));

Newbie012 avatar Nov 14 '18 19:11 Newbie012

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.

rokerkony avatar Nov 15 '18 11:11 rokerkony

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

Newbie012 avatar Nov 16 '18 07:11 Newbie012