websocket

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(network, addr string, tlsConfig *tls.Config) (net.Conn, error)

Dial creates a new WebSocket connection.

Types

type Conn

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

Conn is a wrapper struct for WebSocket connection.

func (Conn) Read

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

Read message from WebSocket.

func (Conn) SetDeadline

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

SetDeadline both read and write.

func (Conn) Write

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

Write message to WebSocket.

Jump to

Keyboard shortcuts

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