xwebsocket

package
v0.0.19-pre1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = "xWebsocket"
	Icon = `<i class="fa-solid fa-plug"></i>`

	OptionFields = []xcapability.CapabilityOptionField{}
)
View Source
var ErrInvalidToken = errors.New("invalid token")

Functions

This section is empty.

Types

type WebsocketBuilder

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

func (*WebsocketBuilder) Build

func (*WebsocketBuilder) GetDebugData

func (b *WebsocketBuilder) GetDebugData() map[string]any

func (*WebsocketBuilder) Name

func (b *WebsocketBuilder) Name() string

func (*WebsocketBuilder) Serve

func (b *WebsocketBuilder) Serve(ctx *gin.Context)

type WebsocketCapability

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

func (*WebsocketCapability) Close

func (c *WebsocketCapability) Close() error

func (*WebsocketCapability) Execute

func (*WebsocketCapability) Handle

func (c *WebsocketCapability) Handle(ctx *gin.Context)

Handle validates the token and emits handle_websocket_connect. The upgrade only happens when the action handler calls finish_upgrade.

func (*WebsocketCapability) ListActions

func (c *WebsocketCapability) ListActions() ([]string, error)

func (*WebsocketCapability) Reload

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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