Documentation

SubprotocolNegotiation
in package
implements LoggerAwareInterface, ProcessHttpOutgoingInterface, ProcessHttpIncomingInterface, Stringable uses LoggerAwareTrait, StringableTrait

WebSocket\Middleware\CloseHandler class.

Handles close procedure.

Table of Contents

Interfaces

LoggerAwareInterface
Describes a logger-aware instance.
ProcessHttpOutgoingInterface
WebSocket\Middleware\ProcessHttpOutgoingInterface interface.
ProcessHttpIncomingInterface
WebSocket\Middleware\ProcessHttpIncomingInterface interface.
Stringable

Properties

$logger  : LoggerInterface|null
The logger instance.
$require  : bool
$subprotocols  : array<string|int, mixed>

Methods

__construct()  : mixed
__toString()  : string
processHttpIncoming()  : Message
processHttpOutgoing()  : Message
setLogger()  : void
Sets a logger.
stringable()  : string

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $subprotocols[, bool $require = false ]) : mixed
Parameters
$subprotocols : array<string|int, mixed>
$require : bool = false

stringable()

protected stringable(string $format, mixed ...$values) : string
Parameters
$format : string
$values : mixed
Return values
string

        
On this page

Search results