Property | Type | Description | |
---|---|---|---|
$headers | array | ||
$type | string |
Property | Type | Description | |
---|---|---|---|
$isMasked | string | ||
$key | string | ||
$opCodes | array | ||
$pctLength | integer | ||
$state | integer |
Method | Description | |
---|---|---|
onFinish ( ) : void | ||
onRead ( ) : void | Called when new data received | |
onReady ( ) : void | Called when the connection is handshaked (at low-level), and peer is ready to recv. data | |
sendFrame ( string $payload, string $type = Pool::TYPE_TEXT, boolean $isMasked = true ) | Send frame to WebSocket server |
Method | Description | |
---|---|---|
mask ( string $mask, string $str ) : string |