Documentation
¶
Index ¶
Constants ¶
const SpacewaveCorePluginID = "spacewave-core"
SpacewaveCorePluginID is the plugin ID for the spacewave-core plugin.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowserTestServer ¶
type BrowserTestServer struct {
// contains filtered or unexported fields
}
BrowserTestServer provides a WebSocket-based RPC server for browser E2E tests. It exposes the spacewave-core plugin's resource services for testing the complete app, plus a standalone LayoutHost for simple layout component tests.
func NewBrowserTestServer ¶
func NewBrowserTestServer( le *logrus.Entry, b bus.Bus, ) *BrowserTestServer
NewBrowserTestServer creates a new BrowserTestServer. It waits for the spacewave-core plugin to be loaded and exposes its RPC services.
func (*BrowserTestServer) GetPort ¶
func (s *BrowserTestServer) GetPort() int
GetPort returns the port the server is listening on, or 0 if not running.
func (*BrowserTestServer) Start ¶
func (s *BrowserTestServer) Start(ctx context.Context) (int, error)
Start starts the WebSocket server on a random available port. It first waits for the spacewave-core plugin to be ready, then exposes its services. Returns the port number the server is listening on.