Aerys\Websocket\Rfc6455Endpoint class Rfc6455Endpoint implements Aerys\Websocket\Endpoint, Aerys\Middleware, Aerys\Monitor, Aerys\ServerObserver

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(Aerys\Logger $logger, Aerys\Websocket $application)
No documentation.
Type Parameter Description Default Value
Aerys\Logger $logger No documentation. none
Aerys\Websocket $application No documentation. none
setOption — public function setOption(string $option, $value)
No documentation.
Type Parameter Description Default Value
string $option No documentation. none
mixed $value No documentation. none
__invoke — public function __invoke(Aerys\Request $request, Aerys\Response $response, ...$args)
No documentation.
Type Parameter Description Default Value
Aerys\Request $request No documentation. none
Aerys\Response $response No documentation. none
mixed ... $args No documentation. none
do — public function do(Aerys\InternalRequest $ireq)
No documentation.
Type Parameter Description Default Value
Aerys\InternalRequest $ireq No documentation. none
reapClient — public function reapClient($watcherId, Aerys\InternalRequest $ireq)
No documentation.
Type Parameter Description Default Value
mixed $watcherId No documentation. none
Aerys\InternalRequest $ireq No documentation. none
onParse — public function onParse(array $parseResult, Aerys\Websocket\Rfc6455Client $client)
No documentation.
Type Parameter Description Default Value
array $parseResult No documentation. none
Aerys\Websocket\Rfc6455Client $client No documentation. none
onReadable — public function onReadable($watcherId, $socket, Aerys\Websocket\Rfc6455Client $client)
No documentation.
Type Parameter Description Default Value
mixed $watcherId No documentation. none
mixed $socket No documentation. none
Aerys\Websocket\Rfc6455Client $client No documentation. none
onWritable — public function onWritable($watcherId, $socket, Aerys\Websocket\Rfc6455Client $client)
No documentation.
Type Parameter Description Default Value
mixed $watcherId No documentation. none
mixed $socket No documentation. none
Aerys\Websocket\Rfc6455Client $client No documentation. none
send — public function send($clientId, string $data, bool $binary = false): Amp\Promise
No documentation.
Type Parameter Description Default Value
mixed $clientId No documentation. none
string $data No documentation. none
bool $binary No documentation. false
sendBinary — public function sendBinary($clientId, string $data): Amp\Promise
No documentation.
Type Parameter Description Default Value
mixed $clientId No documentation. none
string $data No documentation. none
close — public function close(int $clientId, int $code = Code::NORMAL_CLOSE, string $reason = "")
No documentation.
Type Parameter Description Default Value
int $clientId No documentation. none
int $code No documentation. Code::NORMAL_CLOSE
string $reason No documentation. ""
getInfo — public function getInfo(int $clientId): array
No documentation.
Type Parameter Description Default Value
int $clientId No documentation. none
getClients — public function getClients(): array
No documentation.
update — public function update(Aerys\Server $server): Amp\Promise
No documentation.
Type Parameter Description Default Value
Aerys\Server $server No documentation. none
parser — public function parser(callable $emitCallback, array $options = []): Generator

A stateful generator websocket frame parser

Type Parameter Description Default Value
callable $emitCallback A callback to receive parser event emissions none
array $options Optional parser settings []
monitor — public function monitor(): array
No documentation.