gorillaws

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package gorillaws provides compatibility for gorilla websocket upgrader

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

type Wrapper struct {
	*websocket.Upgrader
}

Wrapper for gorilla websocket upgrader

func Wrap

func Wrap(upgrader *websocket.Upgrader) Wrapper

Wrap gorilla upgrader into wsgraphql-compatible interface

func (Wrapper) Upgrade

func (g Wrapper) Upgrade(w http.ResponseWriter, r *http.Request, responseHeader http.Header) (wsgraphql.Conn, error)

Upgrade implementation

Jump to

Keyboard shortcuts

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