From 6ec9ecadf474e11f6959849638cbdb154412983d Mon Sep 17 00:00:00 2001 From: Ulf Bjorkengren Date: Wed, 3 Apr 2024 10:10:08 +0200 Subject: [PATCH] ECF simulator merge cleanup Signed-off-by: Ulf Bjorkengren --- server/vissv2server/atServer/ecfSim/ecfSimulator.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/server/vissv2server/atServer/ecfSim/ecfSimulator.go b/server/vissv2server/atServer/ecfSim/ecfSimulator.go index 5b039bd0..aadd4bba 100644 --- a/server/vissv2server/atServer/ecfSim/ecfSimulator.go +++ b/server/vissv2server/atServer/ecfSim/ecfSimulator.go @@ -17,9 +17,6 @@ import ( "net/url" "flag" "github.com/gorilla/websocket" - "net/http" - "strings" - "time" ) var muxServer = []*http.ServeMux{ @@ -79,17 +76,12 @@ func ecfClient(conn *websocket.Conn, sendChan chan string) { fmt.Printf("ecfClient:Request write error:%s\n", err) return } - request := string(msg) - // fmt.Printf("ecfReceiver: request: %s\n", request) - receiveChan <- request } } func ecfReceiver(conn *websocket.Conn, ecfReceiveChan chan string) { defer conn.Close() for { - response := <-sendChan - err := conn.WriteMessage(websocket.TextMessage, []byte(response)) _, msg, err := conn.ReadMessage() if err != nil { fmt.Printf("ecfReceiver read error: %s\n", err)