Basic chat persistence for #26

This commit is contained in:
Gabe Kangas
2020-07-12 14:53:33 -07:00
parent a55878ff22
commit 8cedf05214
7 changed files with 124 additions and 7 deletions

View File

@@ -116,7 +116,7 @@ func (s *server) Listen() {
s.Messages = append(s.Messages, msg)
s.listener.MessageSent(msg)
s.sendAll(msg)
addMessage(msg)
case ping := <-s.pingCh:
fmt.Println("PING?", ping)