server

package
Version: v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: MIT Imports: 18 Imported by: 4

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