websocket

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KeepAlivePeriod  = 20 * time.Second
	KeepAliveTimeout = 30 * time.Second

	WriteDeadline = 10 * time.Second
)

Functions

This section is empty.

Types

type Conn

type Conn interface {
	SetReadDeadline(t time.Time) error
	SetWriteDeadline(t time.Time) error

	SetPongHandler(h func(appData string) error)

	WriteControl(messageType int, data []byte, deadline time.Time) error
	NextWriter(messageType int) (io.WriteCloser, error)
	NextReader() (int, io.Reader, error)

	Close() error
}

func NewKeepAliveConn

func NewKeepAliveConn(conn Conn) Conn

Jump to

Keyboard shortcuts

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