pkg/sse/events.go
Function WriteMessages
has 6 return statements (exceeds 4 allowed). Open
Open
func WriteMessages(w http.ResponseWriter, messageChan chan Message) error {
// Make sure that the writer supports flushing.
flusher, ok := w.(http.Flusher)
if !ok {
return fmt.Errorf("streaming unsupported")
- Create a ticketCreate a ticket