good morning!!!!

Skip to content
Snippets Groups Projects
Commit 033c6c89 authored by a's avatar a
Browse files

Update websocket_server.go

parent 77aa5b8a
Branches
Tags v0.1.70
No related merge requests found
......@@ -49,13 +49,16 @@ func (ws *WebsocketServer) handleClient(c *websocket.Conn, w http.ResponseWriter
var cmd command
err := wsjson.Read(r.Context(), c, &cmd)
if err != nil {
wsjson.Write(r.Context(), c, map[string]any{
err := wsjson.Write(r.Context(), c, map[string]any{
"error": map[string]any{
"code": -32600,
"message": "invalid message",
"data": err.Error(),
},
})
if err != nil {
break
}
continue
}
switch cmd.Method {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment