WriteEvent queues an SSE event with optional event type
(eventType, data string)
| 297 | |
| 298 | // WriteEvent queues an SSE event with optional event type |
| 299 | func (h *SSEHandlerCh) WriteEvent(eventType, data string) error { |
| 300 | return h.queueMessage(SSEMessage{Type: SSEMsgEvent, Data: data, EventType: eventType}) |
| 301 | } |
| 302 | |
| 303 | // WriteComment queues an SSE comment |
| 304 | func (h *SSEHandlerCh) WriteComment(comment string) error { |
nothing calls this directly
no test coverage detected