connection

package
v0.0.0-...-1c24204 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: Unlicense Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL