wskeyauth

package module
v0.0.0-...-0844244 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrFailedToReadRandomNumbers

func ErrFailedToReadRandomNumbers() error

func ErrInvalidClientID

func ErrInvalidClientID() error

func Handshake

func Handshake(conn *websocket.Conn) (bool, string, error)

Handshake will perform the handshake with the client and return true if the client is authenticated and false if not. If an error is returned, the connection should be closed.

Types

type TypeData

type TypeData struct {
	Type string          `json:"type"`
	Data json.RawMessage `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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