websocket

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorTimeoutComplete = errors.New("complete timeout")
)

Functions

func DialWithTimeout

func DialWithTimeout(node eocontext.INode, path string, query string, header http.Header, timeout time.Duration) (*websocket.Conn, *http.Response, error)

Types

type Complete

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

func NewComplete

func NewComplete(retry int, timeOut time.Duration) *Complete

func (*Complete) Complete

func (h *Complete) Complete(org eocontext.EoContext) error

type Conn added in v0.11.1

type Conn struct {
	*websocket.Conn
}

func (*Conn) Read added in v0.11.1

func (c *Conn) Read(b []byte) (n int, err error)

func (*Conn) SetDeadline added in v0.11.1

func (c *Conn) SetDeadline(t time.Time) error

func (*Conn) Write added in v0.11.1

func (c *Conn) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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