//
pkg.gl
Category
github.com/nymtech/nym-directory
server
websocket
package
0.7.0
Repository:
https://github.com/nymtech/nym-directory.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
2
Files
161 SLOC
#
Packages
mocks
No description provided by the author
#
Functions
NewHub
NewHub constructor.
Serve
Serve 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.
#
Interfaces
IHub
IHub notifies attached clients.