cleaning up an issue with client config generation

This commit is contained in:
2018-02-16 20:41:09 -05:00
parent 3978be8a40
commit ba0f076c66
3 changed files with 8 additions and 3 deletions

View File

@@ -192,6 +192,7 @@ func main() {
router.HandleFunc("/websocket", func(w http.ResponseWriter, r *http.Request) { //websocket is the main data pipe to the frontend
conn, err := upgrader.Upgrade(w, r, nil)
fmt.Println("Websocket connection here")
defer conn.Close() //defer closing the websocket until done.
if err != nil {
Logger.WithFields(logrus.Fields{"error": err}).Fatal("Unable to create websocket!")