From 5f6a6223874f3c5020e7db74f1a8ecee653689bb Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 8 Sep 2022 11:51:07 +0200 Subject: [PATCH] new signature for WsRequestor --- lib/middleware.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/middleware.js b/lib/middleware.js index b4189964..5314bf60 100644 --- a/lib/middleware.js +++ b/lib/middleware.js @@ -230,7 +230,13 @@ module.exports = function(srf, logger) { */ if ('WS' === app.call_hook?.method || app.call_hook?.url.startsWith('ws://') || app.call_hook?.url.startsWith('wss://')) { - app.requestor = new WsRequestor(logger, account_sid, app.call_hook, accountInfo.account.webhook_secret) ; + app.requestor = new WsRequestor( + logger, + service_provider_sid, + account_sid, + app.call_hook, + accountInfo.account.webhook_secret + ) ; app.notifier = app.requestor; app.call_hook.method = 'WS'; }