websocket

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Upgrader is a helper for upgrade http connection to websocket connection
	Upgrader = websocket.Upgrader{
		ReadBufferSize:  128,
		WriteBufferSize: 128,
		CheckOrigin: func(_ *http.Request) bool {
			return true
		},
	}
)

Functions

func Add

func Add(
	m *multicast.Multicast,
	conn *websocket.Conn,
	unmarshall func(b []byte) (msg interface{}, err error),
) (received <-chan interface{}, done chan<- struct{})

Add helps to add websocket connection into multicast communicator

Types

This section is empty.

Jump to

Keyboard shortcuts

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