GithubHelp home page GithubHelp logo

Comments (4)

levlam avatar levlam commented on May 1, 2024

It is supposed to work.

Could you check that the cycle, from which td_json_client_receive is called, is not blocked, and td_json_client_receive is really called again after some updates/responses received or timeout expired?

from td.

blacksailer avatar blacksailer commented on May 1, 2024

I run function with QtConcurrent::run() (This method run function with td_json_client_receive() always in separate thread) with QTimer with interval 100. So this function is always called and not blocked.

I can get objects with @type :[ updateUser, updateOption, updateNotificationSettings ].
in Debug I also see response with @type : [ updateChatLastMessage, updateChatReadInbox ] but it is also not returned via td_json_client_receive().

I added VLOG here in hope to see desired responses via td_json_client_receive(), but with no luck.

To be fully honest, I am trying to build on SailfishOS but this OS has default toolchain with gcc 4.8. So I built library with custom gcc 4.9 and add static libstdc++ and libgcc in cmake so I can try to use it in SailfishSDK (IDE to build native apps). And apps uses by default (and it can't be changed) gcc 4.8

from td.

blacksailer avatar blacksailer commented on May 1, 2024

Here is the code where I am trying to call and process tdlib requests\responses

from td.

blacksailer avatar blacksailer commented on May 1, 2024

Everything works fine. Because of timer I didn't see the output of response. Thanks for your time. Closing issue.

from td.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.