added ping message to gui

This commit is contained in:
DJ2LS 2024-02-08 10:12:49 +01:00
parent 96a300ada5
commit 4cf8097c83

View file

@ -137,6 +137,20 @@ export function eventDispatcher(data) {
return;
switch (data["received"].state) {
case "PING":
message = `Ping request from: ${data.dxcallsign}, SNR: ${data.snr}`;
displayToast("success", "bi-check-circle", message, 5000);
return;
case "PING_ACK":
message = `Ping acknowledged from: ${data.dxcallsign}, SNR: ${data.snr}`;
displayToast("success", "bi-check-circle", message, 5000);
return;
}
case "arq":
if (data["arq-transfer-outbound"]) {
switch (data["arq-transfer-outbound"].state) {