ws

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 5 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 {
	// contains filtered or unexported fields
}

Conn @Description:

func Wrap

func Wrap(conn *websocket.Conn) *Conn

Wrap @Description: @param conn @return *Conn

func (*Conn) Close

func (c *Conn) Close() error

Close @Description: @receiver w @return error

func (Conn) LocalAddr

func (c Conn) LocalAddr() net.Addr

LocalAddr @Description: @receiver w @return net.Addr

func (*Conn) Read

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

Read @Description: @receiver w @param b @return n @return err

func (Conn) RemoteAddr

func (c Conn) RemoteAddr() net.Addr

RemoteAddr @Description: @receiver w @return net.Addr

func (*Conn) SetDeadline

func (c *Conn) SetDeadline(t time.Time) (err error)

SetDeadline @Description: @receiver w @param t @return err

func (*Conn) SetReadDeadline

func (c *Conn) SetReadDeadline(t time.Time) error

SetReadDeadline @Description: @receiver w @param t @return error

func (*Conn) SetWriteDeadline

func (c *Conn) SetWriteDeadline(t time.Time) error

SetWriteDeadline @Description: @receiver w @param t @return error

func (*Conn) Write

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

Write @Description: @receiver w @param b @return n @return err

Jump to

Keyboard shortcuts

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