diff --git a/GoBot/server/hub.go b/GoBot/server/hub.go index c1b3e77..0466861 100644 --- a/GoBot/server/hub.go +++ b/GoBot/server/hub.go @@ -27,6 +27,8 @@ func handleIncomingMessage(who *websocket.Conn, msg string) { return } if !connectedUsers[message[1]] { + fmt.Println(message[1], "tried to connect. Disconnecting!") + fmt.Println(connectedUsers) who.WriteMessage(websocket.TextMessage, []byte("leave "+message[1])) } default: