This commit is contained in:
2024-10-10 21:43:06 +02:00
parent b5fe22bdc0
commit 15cccfcb20

View File

@@ -78,7 +78,9 @@ func main() {
// ConnectionHandler upgrades HTTP connections to WebSocket and handles communication with clients
func ConnectionHandler(w http.ResponseWriter, r *http.Request) {
ws, err := upgrader.Upgrade(w, r, nil)
if err != nil {return}
if err != nil {
return
}
connect <- ws
defer func() {