MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / ConnectionManager

Struct ConnectionManager

shared/messaging/connection_manager.go:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected