Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Aerys
Websocket
onOpen
Aerys\Websocket::onOpen PHP Method
Websocket Interface Documentation
显示文件
Open project: amphp/aerys
onOpen()
public
method
Invoked when the full two-way websocket upgrade completes
public
onOpen
(
integer
$clientId
,
mixed
$handshakeData
)
$clientId
integer
A unique (to the current process) identifier for this client
$handshakeData
mixed
The return value from onHandshake() for this client
public function onOpen(int $clientId, $handshakeData);
Websocket
onClose
onData
onHandshake
onOpen
onStart
onStop