//
pkg.gl
Category
github.com/exatombe/go-chat
ws
package
0.0.0-20240713000925-feccf6f678a9
Repository:
https://github.com/exatombe/go-chat.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
1
Files
170 SLOC
#
Functions
NewHub
NewHub creates a new hub It takes a discord session as argument It returns a pointer to a Hub.
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.
MessageWs
No description provided by the author