Versions in this module Expand all Collapse all v1 v1.0.0 Mar 7, 2026 Changes in this version + func Echo(conn *websocket.Conn, ctx context.Context) + func Upgrader(handler Handler, opts *Options) gin.HandlerFunc + type Client struct + Conn *websocket.Conn + ID string + type Handler func(conn *websocket.Conn, ctx context.Context) + type Hub struct + func NewHub() *Hub + func (h *Hub) Broadcast(room string, msgType websocket.MessageType, data []byte) + func (h *Hub) BroadcastOthers(room string, sender *Client, msgType websocket.MessageType, data []byte) + func (h *Hub) Clients(room string) []*Client + func (h *Hub) Handler(onConnect func(*Client)) gin.HandlerFunc + func (h *Hub) Join(client *Client, room string) + func (h *Hub) Leave(client *Client, room string) + func (h *Hub) Remove(client *Client) + func (h *Hub) Rooms() []string + func (h *Hub) Send(clientID string, msgType websocket.MessageType, data []byte) error + type Options struct + InsecureSkipVerify bool + OriginPatterns []string Other modules containing this package github.com/RAiWorks/RapidGo/v2