Versions in this module Expand all Collapse all v2 v2.8.9 Feb 16, 2026 Changes in this version + func BroadcastInbounds(inbounds any) + func BroadcastNotification(title, message, level string) + func BroadcastOutbounds(outbounds interface{}) + func BroadcastStatus(status any) + func BroadcastTraffic(traffic any) + func BroadcastXrayState(state string, errorMsg string) + type Client struct + Hub *Hub + ID string + Send chan []byte + Topics map[MessageType]bool + type Hub struct + func GetHub() *Hub + func NewHub() *Hub + func (h *Hub) Broadcast(messageType MessageType, payload any) + func (h *Hub) BroadcastToTopic(messageType MessageType, payload any) + func (h *Hub) GetClientCount() int + func (h *Hub) Register(client *Client) + func (h *Hub) Run() + func (h *Hub) Stop() + func (h *Hub) Unregister(client *Client) + type Message struct + Payload any + Time int64 + Type MessageType + type MessageType string + const MessageTypeInbounds + const MessageTypeNotification + const MessageTypeOutbounds + const MessageTypeStatus + const MessageTypeTraffic + const MessageTypeXrayState