mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
More web stuff (#5055)
* Add Response.gamesOfuser * Cleanup and confirm all
This commit is contained in:
parent
f04702fdd1
commit
291c535edb
12 changed files with 71 additions and 24 deletions
12
webclient/src/websocket/commands/session/ping.ts
Normal file
12
webclient/src/websocket/commands/session/ping.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import webClient from '../../WebClient';
|
||||
import { SessionPersistence } from '../../persistence';
|
||||
|
||||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue