Nexus API Reference

SwooleServerEventBinder
in package

FinalYes
Tags
psalm-api

Wires Swoole HTTP+WebSocket events to a CompiledApplication. Shared by both worker- and thread-mode runners; the only per-mode variability is the WebSocketContext factory injected into bindWebSocket().

Table of Contents

Methods

bindRequest()  : void
bindWebSocket()  : void
bindWorkerStop()  : void
recordFailureAndMaybeShutdown()  : void
Sliding-window failure counter — 3 failures within 5s triggers Server::shutdown(). Called by each runner from the WorkerStart catch block; the runner provides a mode-specific shutdown message.

Methods

recordFailureAndMaybeShutdown()

Sliding-window failure counter — 3 failures within 5s triggers Server::shutdown(). Called by each runner from the WorkerStart catch block; the runner provides a mode-specific shutdown message.

public static recordFailureAndMaybeShutdown(Server|Server $server, ServerRuntime $runtime, LoggerInterface $logger, string $shutdownMessage) : void
Parameters
$server : Server|Server
$runtime : ServerRuntime
$logger : LoggerInterface
$shutdownMessage : string

        
On this page

Search results