isInitialized returns whether SetupSSE has been called
()
| 186 | |
| 187 | // isInitialized returns whether SetupSSE has been called |
| 188 | func (h *SSEHandlerCh) isInitialized() bool { |
| 189 | h.lock.Lock() |
| 190 | defer h.lock.Unlock() |
| 191 | return h.initialized |
| 192 | } |
| 193 | |
| 194 | // writeDirectly writes data directly to the response writer |
| 195 | func (h *SSEHandlerCh) writeDirectly(data string, msgType SSEMessageType) error { |
no outgoing calls
no test coverage detected