Synapse\Synapse::connect PHP Method

connect() public method

public connect ( )
    public function connect()
    {
        $this->verified = false;
        $pk = new ConnectPacket();
        $pk->password = $this->password;
        $pk->isMainServer = $this->isMainServer();
        $pk->description = $this->description;
        $pk->maxPlayers = $this->server->getMaxPlayers();
        $pk->protocol = Info::CURRENT_PROTOCOL;
        $this->sendDataPacket($pk);
        $this->connectionTime = microtime(true);
    }