ice framework documentation ice doc v1.6.2
Methods
  • sendClear(resource $socket, string $data) : bool
    Send data to a socket in clear form (basically fwrite).
  • sendData(resource $socket, string $data, string $opcode, bool $masked) : bool
    Send data to a socket.
  • receiveClear(resource $socket) : string
    Read clear data from a socket (basically a fread).
  • receive(resource $socket) : string | bool
    Read data from a socket (in websocket format).
  • encode(string $data, string $opcode, bool $masked, bool $fin) : string
    Encode the data.
  • setParams(array $params) : void
    Set server params.
  • getParams() : array
    Get server params.
  • getParam(string $key, variable $defaultValue) : void
    Retrieve a single param.
  • console(string $text, int $color, int $decoration, int $bgColor, bool $exit) : void
    Display text on the console.
  • info(string $text) : void
    Returns info text.
  • success(string $text) : void
    Returns success text.
  • warning(string $text) : void
    Returns warning text.
  • error(string $text) : void
    Returns error text.
  • getUptime(bool $human) : void
    Get script uptime.
  • getMemoryUsage(bool $human) : void
    Get memory usage.
Methods Details
  • 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()