ws

package
v0.0.0-...-907143c Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func New

func New(w http.ResponseWriter, r *http.Request, disableOriginCheck bool) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close() error

func (*Connection) On

func (c *Connection) On(cmd string, cb func())

func (*Connection) Run

func (c *Connection) Run() error

func (*Connection) Send

func (c *Connection) Send(msg interface{}) error

type Handler

type Handler interface {
}

type OnCommand

type OnCommand func(cmd string, c *Connection)

Jump to

Keyboard shortcuts

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