CloseHandler
in package
implements
LoggerAwareInterface, ProcessIncomingInterface, ProcessOutgoingInterface, Stringable
uses
LoggerAwareTrait, StringableTrait
WebSocket\Middleware\CloseHandler class.
Handles close procedure.
Table of Contents
Interfaces
- LoggerAwareInterface
- Describes a logger-aware instance.
- ProcessIncomingInterface
- WebSocket\Middleware\ProcessIncomingInterface interface.
- ProcessOutgoingInterface
- WebSocket\Middleware\ProcessOutgoingInterface interface.
- Stringable
Properties
- $logger : LoggerInterface|null
- The logger instance.
Methods
- __toString() : string
- processIncoming() : Message
- processOutgoing() : Message
- setLogger() : void
- Sets a logger.
- stringable() : string
Properties
$logger
The logger instance.
protected
LoggerInterface|null
$logger
= null
Methods
__toString()
public
__toString() : string
Return values
stringprocessIncoming()
public
processIncoming(ProcessStack $stack, Connection $connection) : Message
Parameters
- $stack : ProcessStack
- $connection : Connection
Return values
MessageprocessOutgoing()
public
processOutgoing(ProcessStack $stack, Connection $connection, Message $message) : Message
Parameters
- $stack : ProcessStack
- $connection : Connection
- $message : Message
Return values
MessagesetLogger()
Sets a logger.
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface
stringable()
protected
stringable(string $format, mixed ...$values) : string
Parameters
- $format : string
- $values : mixed