function __construct() { parent::__construct(); $this->host = 'localhost'; //хост $this->port = 4041; //порт $this->null = NULL; $this->mysqli = new mysqli('localhost', 'vseploshadki', '2YjLzaDKT7PNCDCU', 'adminchat'); $this->loop = true; $this->user_keys = array(); $this->init(); $this->loop(); }
public function __construct() { parent::__construct(); $this->redis_lib = new Redis_lib(__SWOOLE_REDISIP__); }