websocket

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 6 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 struct {
	*websocket.Conn
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c net.Conn, u *url.URL) (*Conn, error)

func Upgrade

func Upgrade(w http.ResponseWriter, r *http.Request) (*Conn, error)

func (*Conn) WriteMessage added in v1.5.7

func (c *Conn) WriteMessage(messageType int, data []byte) error

Jump to

Keyboard shortcuts

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