client

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// The websocket Connection
	Conn *websocket.Conn
	// Buffered channel of outbound messages
	Send      chan []byte
	Host      string
	Port      string
	Path      string
	Close     chan bool
	MessageRx chan []byte
}

func NewConnection

func NewConnection(
	Host, Port, Path string,
) *Connection

func (*Connection) Connect

func (c *Connection) Connect() error

func (*Connection) StartRX

func (c *Connection) StartRX() error

func (*Connection) StartTX

func (c *Connection) StartTX() error

Jump to

Keyboard shortcuts

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