MCPcopy Index your code
hub / github.com/subtrace/subtrace / add

Method add

devtools/devtools.go:100–104  ·  view source on GitHub ↗
(conn *websocket.Conn)

Source from the content-addressed store, hash-verified

98}
99
100func (s *Server) add(conn *websocket.Conn) {
101 s.mu.Lock()
102 defer s.mu.Unlock()
103 s.conns = append(s.conns, conn)
104}
105
106func (s *Server) remove(conn *websocket.Conn) {
107 s.mu.Lock()

Callers 1

websocketMethod · 0.95

Calls 1

LockMethod · 0.80

Tested by

no test coverage detected