server

package
v0.0.0-...-a73e329 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinimumPassive = -1
View Source
var Port = "8003"

Port defines the public port

View Source
var UseMQTT = false
View Source
var UseSSL = false

Functions

func Debug

func Debug(debugMode bool)

func Run

func Run() (err error)

The server listens on the specified port (0.0.0.0:Port), and any errors that occur during execution are logged. Run will start the server listening on the specified port

func SendMessageOverWebsockets

func SendMessageOverWebsockets(family string, device string, msg []byte) (err error)

SendMessageOverWebsockets will send a message over the websockets

Types

type Websockets

type Websockets struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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