ws

package
v0.0.0-...-fccee52 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func DialOpts

func DialOpts(o Opts) (*Conn, error)

func (Conn) Close

func (c Conn) Close() error

func (Conn) Recv

func (c Conn) Recv() ([]byte, error)

func (Conn) Send

func (c Conn) Send(b []byte) error

type Opts

type Opts struct {
	URL         string
	Subprotocol string
	Binary      bool
	Socks5      string
	Origin      string
	UserAgent   string
}

func (Opts) Header

func (o Opts) Header() http.Header

Jump to

Keyboard shortcuts

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