mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 22:53:55 -07:00
8 lines
328 B
TypeScript
8 lines
328 B
TypeScript
import webClient from '../../WebClient';
|
|
|
|
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);
|
|
}
|