|
|
|
@ -40,6 +40,7 @@ func main() { |
|
|
|
|
|
|
|
|
|
|
|
func chatHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
func chatHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fmt.Printf("we reach the chat handler") |
|
|
|
historyMutex.Lock() |
|
|
|
historyMutex.Lock() |
|
|
|
defer historyMutex.Unlock() |
|
|
|
defer historyMutex.Unlock() |
|
|
|
|
|
|
|
|
|
|
|
|