         ws.onClose = { data in
             print("Did close w/ packet \(data)")
         }
-
-        try ws.send("Hi there")
     }
 }
 

            }

            if text == "close" {
                try ws.send("\n\tCLOSING\n")
                try ws.close()
            }
        }


app.get("socket") { request in
    return try request.upgradeToWebSocket { ws in
        try ws.send("WebSocket Connected :)")

        ws.onText = { ws, text in
            try ws.send("You said \(text)!")

            if text == "stop" {
