ws

package
v0.36.5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Network = "ws"
)

Variables

This section is empty.

Functions

func NewConn

func NewConn(wsConn *websocket.Conn, serverAddress string) net.Conn

Types

type Conn

type Conn struct {
	*websocket.Conn
	// contains filtered or unexported fields
}

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) LocalAddr

func (c *Conn) LocalAddr() net.Addr

func (*Conn) Read

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

func (*Conn) RemoteAddr

func (c *Conn) RemoteAddr() net.Addr

func (*Conn) SetDeadline

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

func (*Conn) SetReadDeadline

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

func (*Conn) SetWriteDeadline

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

func (*Conn) Write

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

type Dialer added in v0.36.0

type Dialer struct {
}

func (Dialer) Dial added in v0.36.0

func (d Dialer) Dial(ctx context.Context, address string) (net.Conn, error)

func (Dialer) Protocol added in v0.36.0

func (d Dialer) Protocol() string

type WebsocketAddr

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

func (WebsocketAddr) Network

func (a WebsocketAddr) Network() string

func (WebsocketAddr) String

func (a WebsocketAddr) String() string

Jump to

Keyboard shortcuts

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