diff --git a/cmd/converge/sessionhandler.go b/cmd/converge/sessionhandler.go deleted file mode 100644 index 66a4efd..0000000 --- a/cmd/converge/sessionhandler.go +++ /dev/null @@ -1,46 +0,0 @@ -package main - -import ( - "log" - "net" - "net/http" - "strconv" - "time" -) - -type Message struct { - Type string `json:"type"` - Content string `json:"content"` -} - -func sessionHandler(w http.ResponseWriter, r *http.Request, conn net.Conn) { - log.Println("Got sessions websocket connection") - go func() { - for { - b := make([]byte, 1024) - log.Printf("Reading from %v", conn) - _, err := conn.Read(b) - if err != nil { - return - } - } - }() - i := 0 - for { - time.Sleep(1 * time.Second) - message := ` -
V1 ascii-art to be improved
-` + notification.Ascii + `-
+ { state.Ascii } ++