|
|
@@ -24,13 +24,13 @@ var (
|
|
|
// tokenid's can be referenced from the global conf
|
|
|
AuthenticatedClients = struct {
|
|
|
Conns map[*websocket.Conn]string
|
|
|
- sync.Mutex
|
|
|
+ sync.RWMutex
|
|
|
}{
|
|
|
Conns: make(map[*websocket.Conn]string),
|
|
|
}
|
|
|
UnauthClients = struct {
|
|
|
Conns map[*websocket.Conn]string
|
|
|
- sync.Mutex
|
|
|
+ sync.RWMutex
|
|
|
}{
|
|
|
Conns: make(map[*websocket.Conn]string),
|
|
|
}
|