mirror of
https://github.com/gnmyt/myspeed.git
synced 2025-12-30 09:40:13 -06:00
Updated the comments in the integrations.js
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports.setState = (state = "ping") => {
|
||||
currentState = state;
|
||||
}
|
||||
|
||||
// Send a ping to the provided healthcheck server
|
||||
// Send a ping to the event system
|
||||
module.exports.sendPing = async (type, message) => {
|
||||
await triggerEvent("minutePassed", {type, message});
|
||||
}
|
||||
@@ -19,16 +19,17 @@ module.exports.sendCurrent = async () => {
|
||||
if (currentState === "ping") await this.sendPing();
|
||||
}
|
||||
|
||||
// Sends an error to the healthcheck server
|
||||
// Sends an 'error' ping to the event system
|
||||
module.exports.sendError = async (error = "Unknown error") => {
|
||||
await triggerEvent("testFailed", error);
|
||||
}
|
||||
|
||||
// Sends a 'running' ping to the healthcheck server
|
||||
// Sends a 'running' ping to the event system
|
||||
module.exports.sendRunning = async () => {
|
||||
await triggerEvent("testStarted");
|
||||
}
|
||||
|
||||
// Sends a 'finished' ping to the event system
|
||||
module.exports.sendFinished = async (data) => {
|
||||
await triggerEvent("testFinished", data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user