package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Sep 28, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Client is a middleman between the websocket connection and the hub.
Hub --
func (h *Hub) Broadcast(message []byte)
Broadcast a message
func (h *Hub) GetBroadcast() chan []byte
GetBroadcast --
Run starts the websocket hub
WSHandler handles websocket requests from the peer.
type Message struct {
Action string `json:"action"`
Model string `json:"model,omitempty"`
ID int `json:"id,omitempty"`
}
Message --
Source Files
¶
Click to show internal directories.
Click to hide internal directories.