internal

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHub

func GetHub() *hub

GetHub returns the global WebSocket hub for step types to use.

func NewWebSocketPlugin

func NewWebSocketPlugin() sdk.PluginProvider

Types

type WSServerInstance added in v0.3.3

type WSServerInstance interface {
	sdk.ModuleInstance
	ServeHTTP(w http.ResponseWriter, r *http.Request)
	HTTPPath() string
}

WSServerInstance is the public interface for the ws.server module, exposing the HTTP handler methods needed for in-process registration.

func NewWSServerModule added in v0.3.3

func NewWSServerModule(name string, config map[string]any) (WSServerInstance, error)

NewWSServerModule creates a new ws.server module instance and returns it via the WSServerInstance interface so the host binary can register the WebSocket upgrade handler directly on the engine's HTTP router.

Jump to

Keyboard shortcuts

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