wt

package
v4.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	centrifuge.PingPongConfig
}

Config for Handler.

type Handler

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

Handler for WebTransport.

func NewHandler

func NewHandler(node *centrifuge.Node, wtServer *webtransport.Server, config Config) *Handler

NewHandler creates new Handler.

func (*Handler) ServeHTTP

func (s *Handler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServeHTTP upgrades connection to WebTransport and creates centrifuge.Client from it.

Jump to

Keyboard shortcuts

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