websocket

package
v1.0.1003 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	OnConnected    interfaces.WebSocketHandler
	OnMsg          interfaces.WebSocketHandlerOnMsg
	OnDisconnected interfaces.WebSocketHandler
}

type Transport

type Transport struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(listener interfaces.Listener) *Transport

func (*Transport) Handler

func (c *Transport) Handler(h http.Handler) http.Handler

func (*Transport) RegisterPath

func (c *Transport) RegisterPath(pa string, handler Handler) error

Jump to

Keyboard shortcuts

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