ws

package
v0.0.0-...-61777e6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2018 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 Conn

type Conn interface {
	Recv() (string, error)
	Send(string) error
	Status() int
	Close() error
}

Conn defines the abstraction of a WebSocket connection between Gopherjs and TCP-capable platforms

func DialConn

func DialConn(url string, proxyaddr string) (Conn, error)

type NativeConn

type NativeConn struct {
	StatusCode int

	Conn *websocket.Conn

	RecvChan chan string
	Die      chan error
	// contains filtered or unexported fields
}

func (*NativeConn) Close

func (jc *NativeConn) Close() error

func (*NativeConn) Recv

func (jc *NativeConn) Recv() (string, error)

func (*NativeConn) Send

func (jc *NativeConn) Send(data string) error

func (*NativeConn) Status

func (jc *NativeConn) Status() int

Jump to

Keyboard shortcuts

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