public function __construct($addr, $port) { parent::__construct($addr, $port); $this->clients = new SplObjectStorage(); // Services $services = @file_get_contents(self::SERVICES_PATH); if ($services) { $this->websocket_services = (array) json_decode($services, true); } }
public function start($addr, $port) { parent::__construct($addr, $port); }
public function __construct($ip, $port) { parent::__construct($ip, $port); $this->databaseManager = new DatabaseManager(); $this->databaseManager->openTable('notifications', json_decode(DatabaseManager::$table5)); }
public function __construct($ip, $port) { parent::__construct($ip, $port); $this->proto = new Protocol($this); }