PingResponder
in package
implements
LoggerAwareInterface, ProcessIncomingInterface, Stringable
uses
StringableTrait, LoggerAwareTrait
WebSocket\Middleware\PingResponder class.
Responds on incoming ping messages.
Table of Contents
Interfaces
- LoggerAwareInterface
- Describes a logger-aware instance.
- ProcessIncomingInterface
- WebSocket\Middleware\ProcessIncomingInterface interface.
- Stringable
Properties
- $logger : LoggerInterface|null
- The logger instance.
Methods
- __toString() : string
- processIncoming() : 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
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