(data []byte)
| 339 | } |
| 340 | |
| 341 | func (w *wsResponseWriter) SendBinary(data []byte) error { |
| 342 | w.mu.Lock() |
| 343 | defer w.mu.Unlock() |
| 344 | if w.completed { |
| 345 | return nil |
| 346 | } |
| 347 | return w.sink.writeBinary(data) |
| 348 | } |
| 349 | |
| 350 | func (w *wsResponseWriter) end() error { |
| 351 | w.mu.Lock() |
nothing calls this directly
no test coverage detected