Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Aerys
Websocket
onClose
Aerys\Websocket::onClose PHP Method
Websocket Interface Documentation
Datei anzeigen
Open project: amphp/aerys
onClose()
public
method
Invoked when the close handshake completes
public
onClose
(
integer
$clientId
,
integer
$code
,
string
$reason
)
$clientId
integer
A unique (to the current process) identifier for this client
$code
integer
The websocket code describing the close
$reason
string
The reason for the close (may be empty)
public function onClose(int $clientId, int $code, string $reason);
Websocket
onClose
onData
onHandshake
onOpen
onStart
onStop