Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleWebSocket ¶
func HandleWebSocket(hub *Hub) router.HandlerFunc
HandleWebSocket 处理 WebSocket 连接
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub WebSocket 集线器
func (*Hub) SendToClient ¶
SendToClient 发送消息给指定客户端
Click to show internal directories.
Click to hide internal directories.