From 27a8f3cd83605990d8f6fe41fcd30dd707a7ab47 Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Tue, 19 Nov 2024 15:24:40 -0800 Subject: [PATCH] no success field --- pkg/handlers/websocket.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/handlers/websocket.go b/pkg/handlers/websocket.go index 3dfdddcee7..bc249834ef 100644 --- a/pkg/handlers/websocket.go +++ b/pkg/handlers/websocket.go @@ -18,14 +18,11 @@ var wsClients = make(map[string]*websocket.Conn) var wsMutex = sync.Mutex{} type ConnectToECWebsocketResponse struct { - Success bool `json:"success"` - Error string `json:"error,omitempty"` + Error string `json:"error,omitempty"` } func (h *Handler) ConnectToECWebsocket(w http.ResponseWriter, r *http.Request) { - response := ConnectToECWebsocketResponse{ - Success: false, - } + response := ConnectToECWebsocketResponse{} clientID := r.URL.Query().Get("id") if clientID == "" {