Versions in this module Expand all Collapse all v0 v0.2.0 Oct 11, 2026 Changes in this version + type Client struct + type Hub struct + func NewHub() *Hub + func (h *Hub) Broadcast(msgType string, data interface{}) error + func (h *Hub) ClientCount() int + func (h *Hub) Run(ctx context.Context) + func (h *Hub) ServeWS(w http.ResponseWriter, r *http.Request) + func (h *Hub) ServeWSUntil(w http.ResponseWriter, r *http.Request, expiresAt time.Time) + type Message struct + Data interface{} + Type string