# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewHub creates a hub.
WithAfterDeleteClient sets f to h's afterDeleteClient.
WithAfterStoreClient sets f to h's afterStoreClient.
No description provided by the author
WithHubAddr sets addr to h's hubAddr.
WithHubPath sets path to h's hubPath.
WithID sets id to c's ID.
No description provided by the author
WithMessageHandler sets h to c.
WithReaderOpt sets ro to c.
No description provided by the author
WithRouter sets r to h's router.
WithUpgradeCheckOrigin sets f to u's CheckOrigin.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithUserGroupID sets id to c's userGroupID.
WithUserID sets id to c's userID.
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Client starts two go-routines to write and read messages upon creation with NewClientCongfigured or NewClient function.
No description provided by the author
No description provided by the author
Hub maintains the set of active clients and broadcasts messages to the clients.
No description provided by the author
NopRouter.
# Interfaces
ClientOption is an interface with apply method.
HubOption is an interface with apply method.
MessageHandler handles data read from r with ReaderOption opts.
Router is an interface with methods that stores and deletes clients and their locations to external storages.
UpgraderOption is an interface with apply method.
# Type aliases
ClientOptionFunc wraps a function to conforms to ClientOption interface.
HubOptionFunc wraps a function to conforms to HubOption interface.
UpgraderOptionFunc wraps a function to conforms to ClientOption interface.