From: Stephen Seo Date: Fri, 29 Apr 2022 06:53:36 +0000 (+0900) Subject: Update backend_protocol for emote send/recv X-Git-Tag: sprint_06_day_5~5 X-Git-Url: https://git.seodisparate.com/stephenseo/LD55?a=commitdiff_plain;h=f498f2c47542b3c2095eb6a6dd484ac1b37a5b55;p=EN605.607.81.SP22_ASDM_Project Update backend_protocol for emote send/recv --- diff --git a/specifications/backend_protocol_specification.md b/specifications/backend_protocol_specification.md index aee257a..68049b6 100644 --- a/specifications/backend_protocol_specification.md +++ b/specifications/backend_protocol_specification.md @@ -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" } ```