From b020fbfc7ae6e9a6ba7e3ab31fc1603ad95b90a5 Mon Sep 17 00:00:00 2001 From: "son.tran" Date: Thu, 23 Nov 2023 17:39:08 +0700 Subject: [PATCH] feat(master): add socket --- apps/api/ws/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/api/ws/main.go b/apps/api/ws/main.go index 3071b7b..fd11afd 100644 --- a/apps/api/ws/main.go +++ b/apps/api/ws/main.go @@ -21,8 +21,7 @@ func Handler(ctx context.Context, event events.APIGatewayWebsocketProxyRequest) } var body Body - - err = json.Unmarshal([]byte(event.Body), &body) + err = json.Unmarshal([]byte(`{"action": "SEND_MESSAGE"}`), &body) if err != nil { fmt.Println(err.Error()) }