Skip to content
Run async OpenFaas functions and receive results back via MQTT
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.env.example
.gitignore
Dockerfile
LICENSE
README.md
main.js
package.json
yarn.lock

README.md

MQTT OpenFaas Bridge

Run async OpenFaas functions and receive results back via MQTT.

To run a function, publish a message on the topic openfaas/invoke/function-name with a JSON payload.

{
    "input": "input for openfaas function",
    
    // Callback parameters will be passed through to the response
    "callbackParams": {
        "url-encoded": "additional-info"
    }
} 

You can then listen for results on the openfaas/results/function-name topic.

{
    "output": "output from the function",
    "params": {
        "params": "are passed through"
    }
}

You can configure the bridge by setting environmental variables manually or in a .env file. They're currently documented in the .env.example file.

You can’t perform that action at this time.