MCPcopy
hub / github.com/gorilla/websocket / broadcastOnce

Method broadcastOnce

conn_broadcast_test.go:94–99  ·  view source on GitHub ↗
(msg *broadcastMessage)

Source from the content-addressed store, hash-verified

92}
93
94func (b *broadcastBench) broadcastOnce(msg *broadcastMessage) {
95 for _, c := range b.conns {
96 c.msgCh <- msg
97 }
98 <-b.doneCh
99}
100
101func BenchmarkBroadcast(b *testing.B) {
102 benchmarks := []struct {

Callers 1

BenchmarkBroadcastFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected