]> git.seodisparate.com - EN605.607.81.SP22_ASDM_Project/commitdiff
Update backend_protocol for emote send/recv
authorStephen Seo <seo.disparate@gmail.com>
Fri, 29 Apr 2022 06:53:36 +0000 (15:53 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 29 Apr 2022 06:53:36 +0000 (15:53 +0900)
specifications/backend_protocol_specification.md

index aee257aebd8699be454fbd13887c64f59b39b1fa..68049b6073e3ac1d8b587e1e78a68c76eb71fac8 100644 (file)
@@ -60,6 +60,16 @@ the same "phrase".
     }
 ```
 
+6. Chat Emote Send:
+
+```
+    {
+        "id": "id given by backend",
+        "type": "send_emote",
+        "emote": "smile", // or "frown", or "neutral", or "think"
+    }
+```
+
 ## Responses
 
 1. Request ID Response
@@ -149,6 +159,8 @@ then the back-end will respond with "too\_many\_players".
                               // g - magenta placed
                               // h - cyan winning and placed piece
                               // i - magenta winning and placed piece
+        // optional "peer_emote" entry is message from opponent
+        "peer_emote": "smile" // or "frown", or "neutral", or "think"
     }
 ```