package
0.0.0-20210215234655-6b25ba8e2337
Repository: https://github.com/beaquant/utils.git
Documentation: pkg.go.dev

# Functions

NewHub 分配一个新的Hub.
ServeWs handles websocket requests from the peer.

# Structs

Client is a middleman between the websocket connection and the hub.
Hub maintains the set of active clients and broadcasts messages to theclients.

# Type aliases

OnMessageFunc 接收到消息触发的事件.