The lock must be held entering this function.
(ch chan struct{})
| 5762 | |
| 5763 | // The lock must be held entering this function. |
| 5764 | func (nc *Conn) sendPing(ch chan struct{}) { |
| 5765 | nc.pongs = append(nc.pongs, ch) |
| 5766 | nc.bw.appendString(pingProto) |
| 5767 | // Flush in place. |
| 5768 | nc.bw.flush() |
| 5769 | } |
| 5770 | |
| 5771 | // This will fire periodically and send a client origin |
| 5772 | // ping to the server. Will also check that we have received |
no test coverage detected