Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendToSocket ¶
SendToSocket will send an action message to socket message
func StartServer ¶
StartServer starts in a goroutine both webserver and websocket handlers
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a ws connection
type WSServer ¶
type WSServer struct {
// contains filtered or unexported fields
}
WSServer maintaining the web socket server
var WSserv *WSServer
WSserv main ws client connections
func NewWSServer ¶
NewWSServer create a new ws server
func (*WSServer) NewAction ¶
NewAction is an action received by one client, sent to the main system process
func (*WSServer) SendAllClients ¶
SendAllClients signal a new message to send to all clients
Click to show internal directories.
Click to hide internal directories.