(server: Server, options = {}, callback)
| 84 | } |
| 85 | |
| 86 | static newClonedServer(server: Server, options = {}, callback): any { |
| 87 | return this.newServer({ |
| 88 | // Make sure the same prefixes exists so that they can communicate |
| 89 | 'adapter.redis.prefix': server.options.adapter.redis.prefix, |
| 90 | 'adapter.nats.prefix': server.options.adapter.nats.prefix, |
| 91 | 'cluster.prefix': server.options.cluster.prefix, |
| 92 | 'cluster.port': server.options.cluster.port, |
| 93 | ...options, |
| 94 | }, callback); |
| 95 | } |
| 96 | |
| 97 | static newWebhookServer(requestHandler: CallableFunction, onReadyCallback: CallableFunction): any { |
| 98 | let webhooksApp = express(); |
no test coverage detected