websocket

package
v0.0.0-...-6fc82a4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpServer http.Server

HttpServer initializes a http server and listen for connection

Functions

func Init

func Init(p *HttpParams)

Init initializes the webserver and websocket connection

Types

type Detection

type Detection struct {
	X int `json:"row"`
	Y int `json:"col"`
}

type HttpParams

type HttpParams struct {
	Address string
	Prefix  string
	Root    string
}

func GetParams

func GetParams() *HttpParams

Jump to

Keyboard shortcuts

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