websocket

package
v0.2.10-2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWebSocketUpgrade

func IsWebSocketUpgrade(r *http.Request) bool

Types

type Conn

type Conn struct {
	*websocket.Conn
	Reader io.Reader
}

func NewConn

func NewConn(c *websocket.Conn) *Conn

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Read

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

func (*Conn) Write

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

type Upgrader

type Upgrader struct {
	websocket.Upgrader
}

Jump to

Keyboard shortcuts

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