In our case, the device is cloud webhook. All communication is handled by http POST or GET commands. All our devices are first connected to our cloud. Our cloud handles all communication with the SmartThings/SmartApp.
We don’t use the SmartApp.
const SmartApp = require("@smartthings/smartapp");
Since we use the serverless services, I don’t think we can even use it.