websocketconn

package
v0.0.0-...-eb0558f Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: BSD-3-Clause Imports: 3 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
	Reader io.Reader
	Writer io.Writer
}

An abstraction that makes an underlying WebSocket connection look like a net.Conn.

func New

func New(ws *websocket.Conn) *Conn

Create a new Conn.

func (*Conn) Close

func (conn *Conn) Close() error

func (*Conn) Read

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

func (*Conn) SetDeadline

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

func (*Conn) Write

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

Jump to

Keyboard shortcuts

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