Skip to content

Commit

Permalink
Merge pull request #14 from UlfBj/master
Browse files Browse the repository at this point in the history
ECF simulator merge cleanup
  • Loading branch information
UlfBj authored Apr 3, 2024
2 parents 4d8f4c3 + 6ec9eca commit ae062f9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions server/vissv2server/atServer/ecfSim/ecfSimulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ import (
"net/url"
"flag"
"github.com/gorilla/websocket"
"net/http"
"strings"
"time"
)

var muxServer = []*http.ServeMux{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ae062f9

Please sign in to comment.