diff --git a/GoBot/server/hub.go b/GoBot/server/hub.go index 14de4d4..c1b3e77 100644 --- a/GoBot/server/hub.go +++ b/GoBot/server/hub.go @@ -12,6 +12,7 @@ var connectedUsers = make(map[string]bool) func newSession(who *websocket.Conn) { clients[who] = true + who.WriteMessage(websocket.TextMessage, []byte("sync")) } func disconnectSession(who *websocket.Conn) {