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

Method snapshot

devtools/devtools.go:117–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117func (s *Server) snapshot() []*websocket.Conn {
118 s.mu.Lock()
119 defer s.mu.Unlock()
120 return append([]*websocket.Conn{}, s.conns...)
121}
122
123func (s *Server) Send(b []byte) {
124 var wg sync.WaitGroup

Callers 1

SendMethod · 0.95

Calls 1

LockMethod · 0.80

Tested by

no test coverage detected