Versions in this module Expand all Collapse all v0 v0.1.1 Feb 16, 2026 Changes in this version + type Client struct + Conn *ws.Conn + Hub *Hub + MessagesToSend chan []byte + PingInterval time.Duration + PongWait time.Duration + ReadSizeLimit int64 + ValidateMessage func(msg []byte, client *Client) (bool, []byte) + func (c *Client) CloseConn() + func (c *Client) ReadMessages() + func (c *Client) WriteMessages() + type Hub struct + Clients map[*Client]bool + Subscribe chan *Client + Unsubscribe chan *Client + func CreateHub() *Hub + func (h *Hub) ClearClient(c *Client) + func (h *Hub) Run()