ws

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(out chan<- *Message, in <-chan *Message, ctx context.Context, cncl context.CancelFunc)

Handler ...

type Message

type Message struct {
	Type int
	Text []byte
}

Message ...

type WebSocket

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

WebSocket ...

func NewServer added in v1.1.0

func NewServer(countMsg, bufferSize int, log logger.Logger) *WebSocket

New ...

func (*WebSocket) Handler

func (s *WebSocket) Handler(w http.ResponseWriter, r *http.Request, handler Handler) error

Jump to

Keyboard shortcuts

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