synapse\network\synlib\SynapseClient::run PHP Method

run() public method

public run ( )
    public function run()
    {
        $this->registerClassLoader();
        gc_enable();
        error_reporting(-1);
        ini_set("display_errors", 1);
        ini_set("display_startup_errors", 1);
        set_error_handler([$this, "errorHandler"], E_ALL);
        register_shutdown_function([$this, "shutdownHandler"]);
        try {
            $socket = new SynapseSocket($this->getLogger(), $this->port, $this->interface);
            new ServerConnection($this, $socket);
        } catch (\Throwable $e) {
            $this->logger->logException($e);
        }
    }