This is automatic generated document for things in Swow\Psr7\Server\EventDriver class
Class EventDriver
Properties
protected $closeHandler protected $connectionHandler protected $exceptionHandler protected $messageHandler protected $requestHandler protected $server protected $startHandler protected $upgradeHandler Methods
Method __construct
public function __construct ( ?Server $server ) Method solveUpgradeResponse
protected function solveUpgradeResponse ( mixed $upgradeResponse ) : ResponseInterface Method startOn
public function startOn ( string $name , int $port ) : void Method withCloseHandler
public function withCloseHandler ( callable(ServerConnection): void $handler ) : static Method withConnectionHandler
public function withConnectionHandler ( callable(ServerConnection): void $handler ) : static Method withExceptionHandler
public function withExceptionHandler ( callable(ServerConnection, Exception): void $handler ) : static Method withMessageHandler
public function withMessageHandler ( callable(ServerConnection, WebSocketFrameInterface): mixed $handler ) : static Method withRequestHandler
public function withRequestHandler ( callable(ServerConnection, ServerRequestPlusInterface): mixed $handler ) : static Method withStartHandler
public function withStartHandler ( callable(Server): void $handler ) : static