()
| 407 | debugLog(); |
| 408 | |
| 409 | let completeCallback = function () { |
| 410 | if (gateway) { |
| 411 | params.name = params.name.replace(/(\[\@local\])/gi, '[@local:' + gateway.port + ']'); |
| 412 | } |
| 413 | try { |
| 414 | let cfg = {token: token, host: host, port: port, webhook: webhook, bg: bg, convert: true}; |
| 415 | lib(cfg)[params.name](kwargs, cb); |
| 416 | } catch(e) { |
| 417 | console.error(e); |
| 418 | return callback(e); |
| 419 | } |
| 420 | }; |
| 421 | |
| 422 | if (isLocal) { |
| 423 | gateway.listen(null, completeCallback, {retry: true}); |
nothing calls this directly
no outgoing calls
no test coverage detected