ws

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewLineChar = []byte{'\n'}
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Send chan []byte
	// contains filtered or unexported fields
}

func NewClient

func NewClient(w http.ResponseWriter, r *http.Request, rHandle ReadHandle, cHandle CloseHandle, log logger.Interface, sChanCnt int) *Client

func (*Client) Run

func (c *Client) Run(pingPeriod, writeWait, pongWait, maxMsgSize int64)

type CloseHandle

type CloseHandle func(*Client)

type ReadHandle

type ReadHandle func(*Client, []byte)

Jump to

Keyboard shortcuts

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