mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -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
|
|
@ -3,7 +3,7 @@ import protobuf from 'protobufjs';
|
|||
import { RoomEvents, SessionEvents } from '../events';
|
||||
import { SessionPersistence } from '../persistence';
|
||||
import { WebClient } from '../WebClient';
|
||||
|
||||
import { SessionCommands } from 'websocket';
|
||||
import ProtoFiles from '../../proto-files.json';
|
||||
|
||||
export interface ProtobufEvents {
|
||||
|
|
@ -75,11 +75,7 @@ export class ProtobufService {
|
|||
}
|
||||
|
||||
public sendKeepAliveCommand(pingReceived: Function) {
|
||||
const command = this.controller.SessionCommand.create({
|
||||
'.Command_Ping.ext': this.controller.Command_Ping.create()
|
||||
});
|
||||
|
||||
this.sendSessionCommand(command, pingReceived);
|
||||
SessionCommands.ping(pingReceived);
|
||||
}
|
||||
|
||||
public handleMessageEvent({ data }: MessageEvent): void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue