package
Version:
v0.0.0-...-77e18a0
Opens a new window with list of versions in this module.
Published: May 31, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
serveWs handles websocket requests from the peer.
Client is a middleman between the websocket connection and the hub.
type Hub struct {
Broadcast chan []byte
}
Hub maintains the set of active clients and broadcasts messages to the
clients.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.