Merge branch 'develop' into webv2

This commit is contained in:
Gabe Kangas
2022-08-09 14:14:45 -07:00
28 changed files with 199 additions and 160 deletions

View File

@@ -3,6 +3,7 @@ package chat
import (
"bytes"
"encoding/json"
"net/http"
"sync"
"time"
@@ -60,6 +61,12 @@ const (
var upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
// Override default origin check to allow all clients, even those that
// do not match our server.
CheckOrigin: func(r *http.Request) bool {
return true
},
}
var (