Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶ added in v0.0.2
func NewServer(options ServerOptions) *server
Types ¶
type SSEHub ¶ added in v0.4.0
type SSEHub struct { // Inbound messages from the clients. Broadcast chan *sse // Register requests from the clients. Register chan *sseClient // Unregister requests from clients. Unregister chan *sseClient // contains filtered or unexported fields }
SSEHub maintains the set of active clients and broadcasts messages to the clients.
type ServerConfigError ¶ added in v0.0.3
type ServerOptions ¶ added in v0.0.3
Source Files ¶
Click to show internal directories.
Click to hide internal directories.