wsResponseWriter serialises WebSocket response writes into the sink.
| 313 | |
| 314 | // wsResponseWriter serialises WebSocket response writes into the sink. |
| 315 | type wsResponseWriter struct { |
| 316 | mu sync.Mutex |
| 317 | sink *responseSink |
| 318 | started bool |
| 319 | completed bool |
| 320 | } |
| 321 | |
| 322 | func (w *wsResponseWriter) start() error { |
| 323 | w.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected