websocket

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BinaryMessage = 2

Variables

This section is empty.

Functions

func Dial

func Dial(address string) (net.Conn, error)

func GetKeyAccept

func GetKeyAccept() (key, accept string)

Types

type Client

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

func NewClient

func NewClient(conn net.Conn) *Client

func (*Client) Close

func (w *Client) Close() error

func (*Client) LocalAddr

func (w *Client) LocalAddr() net.Addr

func (*Client) Read

func (w *Client) Read(b []byte) (n int, err error)

func (*Client) RemoteAddr

func (w *Client) RemoteAddr() net.Addr

func (*Client) SetDeadline

func (w *Client) SetDeadline(t time.Time) error

func (*Client) SetReadDeadline

func (w *Client) SetReadDeadline(t time.Time) error

func (*Client) SetWriteDeadline

func (w *Client) SetWriteDeadline(t time.Time) error

func (*Client) Write

func (w *Client) 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