Skip to content

Commit

Permalink
feat(master): add socket
Browse files Browse the repository at this point in the history
  • Loading branch information
thaisonenouvo committed Nov 23, 2023
1 parent 2e511f4 commit b020fbf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/api/ws/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

1 comment on commit b020fbf

@vercel
Copy link

@vercel vercel bot commented on b020fbf Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.