keepalive

package
v0.0.0-...-c328704 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMD_PING = "ping"
	CMD_PONG = "pong"
)
View Source
const (
	EVENT_TIMEOUT = "event:timeout"
)

Variables

View Source
var (
	DefaultInterval = 20 * time.Second
	DefaultTimeout  = 30 * time.Second
)
View Source
var (
	ErrTimeout = errors.New("timeout")
)

Functions

func ClientSide

func ClientSide(timeout, interval time.Duration) protocal.HandshakeHandleFunc

func ServerSide

func ServerSide(timeout time.Duration) protocal.HandshakeHandleFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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