Documentation
¶
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 holds connected clients and broadcasts (plan: realtime chat, notifications).
func (*Hub) SetAllowedOrigins ¶
SetAllowedOrigins configures allowed websocket origins. When empty, same-origin requests are allowed by default.
Click to show internal directories.
Click to hide internal directories.