websocket

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocketManagerCtx

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

func New

func (*WebSocketManagerCtx) AddHandler

func (manager *WebSocketManagerCtx) AddHandler(handler types.WebSocketHandler)

func (*WebSocketManagerCtx) Shutdown

func (manager *WebSocketManagerCtx) Shutdown() error

func (*WebSocketManagerCtx) Start

func (manager *WebSocketManagerCtx) Start()

func (*WebSocketManagerCtx) Upgrade

func (manager *WebSocketManagerCtx) Upgrade(checkOrigin types.CheckOrigin) types.RouterHandler

type WebSocketPeerCtx

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

func (*WebSocketPeerCtx) Destroy

func (peer *WebSocketPeerCtx) Destroy(reason string)

func (*WebSocketPeerCtx) Ping

func (peer *WebSocketPeerCtx) Ping() error

func (*WebSocketPeerCtx) Send

func (peer *WebSocketPeerCtx) Send(event string, payload any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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