Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.