Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebSocketPlugin ¶
func NewWebSocketPlugin() sdk.PluginProvider
func SetBroadcastHook ¶ added in v0.5.0
SetBroadcastHook installs a hook that overrides room broadcasts in step.ws_broadcast. Pass nil to remove the hook.
func SetSendHook ¶ added in v0.5.0
SetSendHook installs a hook that overrides direct sends in step.ws_send. Pass nil to remove the hook.
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.