-
Send data to a socket in clear form (basically fwrite).
-
Send data to a socket.
-
Read clear data from a socket (basically a fread).
-
Read data from a socket (in websocket format).
-
Encode the data.
-
Set server params.
-
getParams() : arrayGet server params.
-
Retrieve a single param.
-
Display text on the console.
-
Returns info text.
-
Returns success text.
-
Returns warning text.
-
Returns error text.
-
Get script uptime.
-
Get memory usage.
-
public function sendClear(resource $socket, string $data)
Send data to a socket in clear form (basically fwrite). -
public function sendData(resource $socket, string $data, string $opcode, bool $masked)
Send data to a socket. -
public function receiveClear(resource $socket)
Read clear data from a socket (basically a fread). -
public function receive(resource $socket)
Read data from a socket (in websocket format). -
protected function encode(string $data, string $opcode, bool $masked, bool $fin)
Encode the data. -
public function setParams(array $params)
Set server params. -
public function getParams()
Get server params. -
public function getParam(string $key, variable $defaultValue)
Retrieve a single param. -
public function console(string $text, int $color, int $decoration, int $bgColor, bool $exit)
Display text on the console. -
public function info(string $text)
Returns info text. -
public function success(string $text)
Returns success text. -
public function warning(string $text)
Returns warning text. -
public function error(string $text)
Returns error text. -
public function getUptime(bool $human)
Get script uptime. -
public function getMemoryUsage(bool $human)
Get memory usage. -
internal function zephir_init_static_properties_Ice_Cli_Websocket_Websocket()