Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConnection ¶
type ClientConnection struct {
WebsocketClient *socket.WebsocketClient
V1Processor *processor_v1.Processor
LocalSettings *settings.Store
}
ClientConnection handles the initial processing of the websocket messages and sends it off to the WebsocketClient to take care of them Reconnections are not handled here, the surrounding code will have to handle that
func (*ClientConnection) Close ¶
func (c *ClientConnection) Close(msg string)
Close will gracefully close the connection. If an error ocurrs during closing, it will be ignored.
func (*ClientConnection) Listen ¶
func (c *ClientConnection) Listen(closeChan chan<- error)
Listen requests information from the server and then listens for data
Click to show internal directories.
Click to hide internal directories.