MCPcopy Index your code
hub / github.com/CopyTranslator/CopyTranslator / sendRequest

Method sendRequest

src/main/tracker.ts:85–94  ·  view source on GitHub ↗
(payload: { events: AppEvent[] })

Source from the content-addressed store, hash-verified

83 }
84
85 private sendRequest(payload: { events: AppEvent[] }): Promise<void> {
86 return axios
87 .post(this.endpoint, payload, {
88 timeout: 5000,
89 headers: {
90 "Content-Type": "application/json",
91 },
92 })
93 .then(() => undefined);
94 }
95
96 /**
97 * 停止追踪器(清理定时器)

Callers 1

flushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected