Documentation
¶
Overview ¶
Package ws implements a WebSocket hub that bridges the internal event bus to connected clients (both browser and service consumers).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub manages connected WebSocket clients and fans events out to them.
func (*Hub) HandleEvent ¶
HandleEvent implements events.Handler. It marshals the event to JSON and delivers it to every connected client.
Click to show internal directories.
Click to hide internal directories.