websocket

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe added in v0.1.3

func ListenAndServe(rwc *websocket.Conn)

func UpgradeHTTP

func UpgradeHTTP(w http.ResponseWriter, r *http.Request) (*websocket.Conn, error)

Types

type Packet added in v0.1.3

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

type Pool added in v0.1.3

type Pool struct {
	// maximum cap clients allowed
	Capacity uint
	// Maximum message size allowed from peer.
	ReadBufferSize int64
	// Time allowed to read the next pong message from the peer.
	ReadTimeout time.Duration
	// Time allowed to write a message to the peer.
	WriteTimeout time.Duration
	// contains filtered or unexported fields
}

func (*Pool) Close added in v0.1.3

func (pool *Pool) Close()

func (*Pool) IsFull added in v0.1.3

func (pool *Pool) IsFull() bool

func (*Pool) Listen added in v0.1.3

func (pool *Pool) Listen()

func (*Pool) ListenAndServe added in v0.1.3

func (pool *Pool) ListenAndServe(rwc *websocket.Conn)

func (*Pool) Serve added in v0.1.3

func (pool *Pool) Serve(rwc *websocket.Conn)

Jump to

Keyboard shortcuts

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