Closed gfargo closed 1 year ago
Hey GFargo! The API for this addition implies that webhooks at multiple servers can be used symultaneously, but internally there's just one connection. Could this be changed to either a module server hostname variable (to be set at the start of a Tingbot app) or actual support for multiple servers internally?
Goals:
Extend the existing
webhook
class to accept a secondhook_domain
variable. This update will allow apps to target and consume content from external webhook servers.The new variable
hook_domain
is defaulted towebhook.tingbot.com
if it doesn't exist in the webook call.Implementation:
Pass either a Domain or IP as the second parameter to
@webhook
class constructor