PHP Interface Aerys\Websocket\Endpoint

Afficher le fichier Open project: amphp/aerys Interface Usage Examples

Méthodes publiques

Méthode Description
close ( integer $clientId, integer $code = Code::NORMAL_CLOSE, string $reason = "" )
getClients ( ) : array
getInfo ( integer $clientId ) : array
send ( $clientId, string $data ) : Amp\Promise
sendBinary ( $clientId, string $data ) : Amp\Promise

Method Details

close() public méthode

public close ( integer $clientId, integer $code = Code::NORMAL_CLOSE, string $reason = "" )
$clientId integer
$code integer
$reason string

getClients() public méthode

public getClients ( ) : array
Résultat array

getInfo() public méthode

public getInfo ( integer $clientId ) : array
$clientId integer
Résultat array

send() public méthode

public send ( $clientId, string $data ) : Amp\Promise
$data string
Résultat Amp\Promise

sendBinary() public méthode

public sendBinary ( $clientId, string $data ) : Amp\Promise
$data string
Résultat Amp\Promise