Aerys\Websocket\Rfc6455Endpoint classRfc6455Endpoint implementsAerys\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 functionsetOption(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 functiondo(Aerys\InternalRequest$ireq)
No documentation.
Type Parameter Description Default Value
Aerys\InternalRequest $ireq No documentation. none
reapClient —public functionreapClient($watcherId,Aerys\InternalRequest$ireq)
No documentation.
Type Parameter Description Default Value
mixed $watcherId No documentation. none
Aerys\InternalRequest $ireq No documentation. none
onParse —public functiononParse(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 functiononReadable($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 functiononWritable($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 functionsend($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 functionsendBinary($clientId,string$data):Amp\Promise
No documentation.
Type Parameter Description Default Value
mixed $clientId No documentation. none
string $data No documentation. none
close —public functionclose(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 functiongetInfo(int$clientId):array
No documentation.
Type Parameter Description Default Value
int $clientId No documentation. none
getClients —public functiongetClients():array
No documentation.
update —public functionupdate(Aerys\Server$server):Amp\Promise
No documentation.
Type Parameter Description Default Value
Aerys\Server $server No documentation. none
parser —public functionparser(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 functionmonitor():array
No documentation.