We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1edb91 commit bc8e390Copy full SHA for bc8e390
src/models/matchmaking.model.ts
@@ -3,3 +3,26 @@ export type MatchmakingTreeNode = {
3
left: null | MatchmakingTreeNode;
4
right: null | MatchmakingTreeNode;
5
};
6
+
7
+export enum WebsocketMessageType {
8
+ READY = "READY",
9
+ NOT_READY = "NOT_READY",
10
+ CHECK = "CHECK", // Verify if handle sends a problem
11
+ PING = "PING",
12
+ START_CONTEST = "START_CONTEST",
13
+}
14
15
+export type WebsocketReadyPayload = {
16
+ handle: string;
17
+};
18
19
+export type WebsocketReadyMessage = {
20
+ action: WebsocketMessageType.READY;
21
+ data: WebsocketReadyPayload;
22
23
24
+export type WebsocketNotReadyMessage = {
25
+ action: WebsocketMessageType.NOT_READY;
26
27
28
+export type WebsocketCheckMessage = {};
0 commit comments