alexa-app icon indicating copy to clipboard operation
alexa-app copied to clipboard

Add state to callback functions

Open mattotodd opened this issue 9 years ago • 4 comments

I am using this package to write node-red bindings for alexa.

The issue is that the way that node-red processes messages, it can not respond to an http request until the end of a chain of nodes, and then it uses the express response object to respond.

These nodes do not know about one another, they only pass a message (javascript object) down the chain, and the express response object needs to be passed down that chain.

HTTP In ---> Do Some Processing --> Add Alexa Say Command --> HTTP Out

The way the library was currently written, I couldn't find a way to pass along the express response object. So for now I'm including it it my package with the changes, but I'd rather include alexa-app as a dependency

The usage within my project can be found here

mattotodd avatar Jun 03 '16 22:06 mattotodd

Coverage Status

Coverage remained the same at 81.019% when pulling daa96648bf93dc5d814a7b99b6b0ae7adb0ac91b on mattotodd:master into 72cd1f7fed23ee019fd38b79826401a599c310ba on matt-kruse:master.

coveralls avatar Jun 03 '16 22:06 coveralls

a love here?

mattotodd avatar Sep 07 '16 19:09 mattotodd

Sorry for the delay, we're back on track here. I think this is valuable. It would need tests and CHANGELOG to get this in. Care to do it @mattotodd?

dblock avatar Dec 16 '16 20:12 dblock

+1

kevingilbert100 avatar Jun 30 '17 00:06 kevingilbert100