Git Product home page Git Product logo

Comments (8)

fpagliughi avatar fpagliughi commented on August 18, 2024 1

At this time, the C++ library is just a wrapper around the Paho C lib which handles all the network communications, connect/read/write, etc. As such, would it even be possible to implement WebSockets in the C++ library and bypass the C networking? Wouldn't we need the C library to manage this?

from paho.mqtt.cpp.

fpagliughi avatar fpagliughi commented on August 18, 2024 1

Yes, the C library with WebSockets and MQTT v5 is just being released. This C++ library is soon to follow!

from paho.mqtt.cpp.

guilhermeferreira avatar guilhermeferreira commented on August 18, 2024

would it even be possible to implement WebSockets in the C++ library and bypass the C networking? Wouldn't we need the C library to manage this?

@fpagliughi probably we will need some changes in the Paho MQTT C library.

from paho.mqtt.cpp.

fpagliughi avatar fpagliughi commented on August 18, 2024

If this Paho C enhancement goes through, we can use and test from the C++ library.
eclipse/paho.mqtt.c#415

from paho.mqtt.cpp.

tbeu avatar tbeu commented on August 18, 2024

If this Paho C enhancement goes through, we can use and test from the C++ library.

It did.

from paho.mqtt.cpp.

windbender avatar windbender commented on August 18, 2024

I have successfully used the paho c support for web socket. It works!

from paho.mqtt.cpp.

fpagliughi avatar fpagliughi commented on August 18, 2024

Wow. I didn't need to do anything!!!

Just build the latest C++ v1.0.1 (or master branch) against Paho C v1.3.0, and boom!
WebSocket support.

from paho.mqtt.cpp.

fpagliughi avatar fpagliughi commented on August 18, 2024

See eclipse/paho.mqtt.c#415 for some hints on how to use it. Documentation will be added to the C++ library in the near future.

from paho.mqtt.cpp.

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.