ws

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

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WS

type WS struct {
	Conn    *websocket.Conn
	Client  *websocket.Dialer
	Header  http.Header
	URL     *url.URL
	Quit    chan int
	Message chan string
	Sender  *sender.Sender
}

WS will hold the websocket information

func New

func New(sender *sender.Sender) *WS

New will return an instantiated websocket connection

func (*WS) Reload

func (w *WS) Reload()

Reload will reload the websocket connection with new settings

func (*WS) Start

func (w *WS) Start() error

Start will start the websocket connection

Jump to

Keyboard shortcuts

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