server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(listenAddr, host, wsPath, secret string, period uint, serverCert tls.Certificate, opts ...Option) (*wssLink, error)

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithHandshakeTimeout

func WithHandshakeTimeout(timeout time.Duration) Option

func WithReverseProxy

func WithReverseProxy(host *url.URL, realserver string, crt tls.Certificate) Option

func WithWeb

func WithWeb(root, host string, crt tls.Certificate) Option

Jump to

Keyboard shortcuts

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