Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSSENotSupported indicates the HTTP handler does not support server-sent events. ErrSSENotSupported = errors.New("response writer does not support SSE") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a HTTP/2 client that can receive server-sent events.
type Message ¶
type Message struct {
// The event type. If empty, the event field is omitted.
Event string
// The data to send.
Data []byte
}
Message represents a server-sent event.
Click to show internal directories.
Click to hide internal directories.