(payload: { events: AppEvent[] })
| 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 | * 停止追踪器(清理定时器) |