Initial implementation completion and refactor

This commit is contained in:
seavor 2026-04-11 21:18:10 -05:00
parent e977f123ce
commit f0bf865646
76 changed files with 897 additions and 890 deletions

View file

@ -1,8 +1,7 @@
import webClient from '../../WebClient';
import { BackendService } from '../../services/BackendService';
export function ping(pingReceived: Function): void {
const command = webClient.protobuf.controller.Command_Ping.create();
const sc = webClient.protobuf.controller.SessionCommand.create({ '.Command_Ping.ext': command });
webClient.protobuf.sendSessionCommand(sc, pingReceived);
BackendService.sendSessionCommand('Command_Ping', {}, {
onResponse: (raw) => pingReceived(raw),
});
}