wsutil

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package wsutil declares common types and implements some WebSocket utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUpgrade

func IsUpgrade(r *http.Request) bool

IsUpgrade reports whether an HTTP request is a WebSocket upgrade request.

Types

type ObjectPayload added in v0.2.0

type ObjectPayload map[string]interface{}

ObjectPayload represents object-typed data.

func (ObjectPayload) String added in v0.2.0

func (p ObjectPayload) String(key string) string

String returns the value associated with the specified key.

Key comparison is case-insensitive.

Jump to

Keyboard shortcuts

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