websocket

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message added in v1.8.0

type Message struct {
	Type int
	Text []byte
}

type WebSocket

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

func NewWebSocket added in v1.8.0

func NewWebSocket(messagepoolsize, buffersize int) *WebSocket

func (*WebSocket) Handler

func (ws *WebSocket) Handler(w http.ResponseWriter, r *http.Request, handler WebSocketHandler)

type WebSocketHandler

type WebSocketHandler func(chan<- *Message, <-chan *Message)

Jump to

Keyboard shortcuts

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