MCPcopy
hub / github.com/soketi/soketi / newClonedServer

Method newClonedServer

tests/utils.ts:86–95  ·  view source on GitHub ↗
(server: Server, options = {}, callback)

Source from the content-addressed store, hash-verified

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();

Calls 1

newServerMethod · 0.95

Tested by

no test coverage detected