wsrelay

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a websocket client

func NewClient

func NewClient(brokerAddr, path string, disableTLS bool, insecure bool) (*Client, error)

NewClient creates a new websocket client that can be interrupted via SIGINT

func (*Client) Close

func (c *Client) Close() error

func (*Client) Read

func (c *Client) Read(p []byte) (n int, err error)

func (*Client) Write

func (c *Client) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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