MCPcopy
hub / github.com/alibaba/anyproxy / start

Method start

proxy.js:328–342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 }
327
328 start() {
329 // start web interface if neeeded
330 if (this.proxyWebinterfaceConfig && this.proxyWebinterfaceConfig.enable) {
331 this.webServerInstance = new WebInterface(this.proxyWebinterfaceConfig, this.recorder);
332 }
333
334 // start web server
335 this.webServerInstance.start().then(() => {
336 // start proxy core
337 super.start();
338 })
339 .catch((e) => {
340 this.emit('error', e);
341 });
342 }
343
344 close() {
345 return new Promise((resolve, reject) => {

Callers 3

defaultProxyServerFunction · 0.95
proxyServerWithRuleFunction · 0.95

Calls 1

startMethod · 0.45

Tested by

no test coverage detected