server

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: MIT Imports: 17 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)

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