websocket

package
v0.0.0-...-9babb80 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWebSocketUpgrade

func IsWebSocketUpgrade(r *http.Request) bool

IsWebSocketUpgrade is ...

Types

type Conn

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

Conn is ...

func NewConn

func NewConn(c *websocket.Conn) *Conn

NewConn is ...

func (*Conn) Close

func (c *Conn) Close() error

Close is ...

func (*Conn) Read

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

Read is ...

func (*Conn) Write

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

Write is ...

type Upgrader

type Upgrader struct {
	websocket.Upgrader
}

Upgrader is ...

Jump to

Keyboard shortcuts

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