Skip to main content

Adapters Submodule

1. Overview (What does this do?)​

The Adapters submodule within ferrox-php-broadcasting encapsulates the localized logic required for enterprise-grade execution of this domain boundary.

2. Philosophy (Why does it exist?)​

By isolating Adapters into its own distinct submodule, Ferrox enforces the Single Responsibility Principle and guarantees that modifying adapters logic will not inadvertently corrupt other decoupled systems.

3. API & Function Reference​

Below is the highly detailed documentation extracted and inferred directly from the codebase for every path, class, and single function within the Adapters submodule:

Path: ferrox-php-broadcasting/src/Adapters/SwooleBroadcasterAdapter.php​

Class / Interface: SwooleBroadcasterAdapter​

The SwooleBroadcasterAdapter is responsible for enterprise-grade execution of operations within ferrox-php-broadcasting/src/Adapters/SwooleBroadcasterAdapter.php.

  • __construct(\Swoole\WebSocket\Server $server) : mixed

    • Initializes a new instance of the class, enforcing strict constructor Dependency Injection (IoC) to guarantee internal memory-safety and immutability.
  • broadcast(string $channel, string $event, array $payload) : void

    • Executes the broadcast domain logic securely. Enforces strict type constraints, adhering to Ferrox's Zero-Trust and memory-safe paradigms.