We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4eaff1 commit 13a8c43Copy full SHA for 13a8c43
internal/handlers/common_handler.go
@@ -44,8 +44,8 @@ func (h *CommonHandler) OnMessage(ctx *gin.Context) {
44
ctx.JSON(response.StatusCode, response)
45
return
46
}
47
- h.wsSvc.BroadcastMessage(message)
48
- response.SetStatusCode(http.StatusOK).SetMessage("Message sent successfully")
+ go h.wsSvc.BroadcastMessage(message)
+ response.SetStatusCode(http.StatusOK).SetMessage("Message sent successfully").SetData(message)
49
50
51
0 commit comments