//
pkg.gl
Category
github.com/linhe-demo/go-toolbox
toolbox
pkg
websocket
package
0.0.0-20250117035936-2df2964b6299
Repository:
https://github.com/linhe-demo/go-toolbox.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
0
Files
170 SLOC
#
Functions
NewHub
No description provided by the author
Run
No description provided by the author
ServeWs
ServeWs handles websocket requests from the peer.
#
Structs
Client
Client is a middleman between the websocket connection and the hub.
Hub
Hub maintains the set of active clients and broadcasts messages to the clients.