websocket

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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 WebSocket

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

func NewWebSocket

func NewWebSocket(messagepoolsize, buffersize int) *WebSocket

func (*WebSocket) Handler

func (ws *WebSocket) Handler(w http.ResponseWriter, r *http.Request, handler func(chan<- *WebSocketMessage, <-chan *WebSocketMessage))

type WebSocketMessage

type WebSocketMessage struct {
	Type int
	Text []byte
}

Jump to

Keyboard shortcuts

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