Make IDs for chat messages generated server-side, not client. For #26

This commit is contained in:
Gabe Kangas
2020-06-24 22:00:49 -07:00
parent 5dffaf215b
commit a297e33eff
8 changed files with 11 additions and 19 deletions

View File

@@ -69,8 +69,6 @@ func (s *server) sendAll(msg models.ChatMessage) {
}
func (s *server) ping() {
// fmt.Println("Start pinging....", len(s.clients))
ping := models.PingMessage{MessageType: "PING"}
for _, c := range s.Clients {
c.pingch <- ping