| 23 | } |
| 24 | |
| 25 | type ConnectionManager struct { |
| 26 | connections map[string]*connWrapper // Local connections storage (userId -> connection) |
| 27 | mutex sync.RWMutex |
| 28 | } |
| 29 | |
| 30 | var upgrader = websocket.Upgrader{ |
| 31 | CheckOrigin: func(r *http.Request) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected