MCPcopy Create free account
hub / github.com/cryptocj520/meteora2 / constructor

Method constructor

web/server.js:16–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 */
15class DLMMWebServer {
16 constructor() {
17 this.app = express();
18 this.server = null;
19 this.wsServer = null;
20 this.port = process.env.PORT || 7001;
21
22 // 🌐 动态配置API基础URL
23 this.apiBaseUrl = this.getApiBaseUrl();
24 console.log('🔧 API代理地址:', this.apiBaseUrl);
25
26 this.setupMiddleware();
27 this.setupRoutes();
28
29 }
30
31 /**
32 * 🌐 动态获取API基础URL

Callers

nothing calls this directly

Calls 3

getApiBaseUrlMethod · 0.95
setupMiddlewareMethod · 0.95
setupRoutesMethod · 0.95

Tested by

no test coverage detected