wsconn

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

A wrapper around a websocket.Conn that implements the net.Conn interface.

func New

func New(conn *websocket.Conn) *Adapter

func (*Adapter) Close

func (ws *Adapter) Close() error

func (*Adapter) LocalAddr

func (ws *Adapter) LocalAddr() net.Addr

func (*Adapter) Read

func (ws *Adapter) Read(b []byte) (n int, err error)

func (*Adapter) RemoteAddr

func (ws *Adapter) RemoteAddr() net.Addr

func (*Adapter) SetDeadline

func (ws *Adapter) SetDeadline(t time.Time) error

func (*Adapter) SetReadDeadline

func (ws *Adapter) SetReadDeadline(t time.Time) error

func (*Adapter) SetWriteDeadline

func (ws *Adapter) SetWriteDeadline(t time.Time) error

func (*Adapter) Write

func (ws *Adapter) 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