MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / WriteEvent

Method WriteEvent

pkg/web/sse/ssehandler.go:299–301  ·  view source on GitHub ↗

WriteEvent queues an SSE event with optional event type

(eventType, data string)

Source from the content-addressed store, hash-verified

297
298// WriteEvent queues an SSE event with optional event type
299func (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
304func (h *SSEHandlerCh) WriteComment(comment string) error {

Callers

nothing calls this directly

Calls 1

queueMessageMethod · 0.95

Tested by

no test coverage detected