How can I use C ++ to send data via websocket?

I want to be able to send data via websocket in my C ++ code? Is there some kind of library or standard way for this to be done? Thanks for the help, I appreciate it, and please let me know if I need to provide more information.

+6
c ++ javascript websocket
source share
7 answers

Please see https://github.com/zaphoyd/websocketpp , which is based on Boost ASIO.

You can find a comparison of websocket implementations at http://en.wikipedia.org/wiki/Comparison_of_WebSocket_implementations .

+5
source share
+3
source share

cURL will probably be a little taller and easier to use than boost, esp if that is the HTTP address you are looking for.

+1
source share

Check out the link for libwebsocket in warmcat 's answer to my question (stand-alone C ++ web server server library) , which was published earlier.

Please note that libwebsocket can be used for client and server websites.

+1
source share

Beast is a C ++ library using Boost Asio, demonstrated in CppCon 2016 and used in rippled , an open source application that implements a decentralized encryption system.

Also see this related question and this one .

+1
source share

Many different, but you will probably find useful Boost libraries.

0
source share

For a clean C ++ approach to WebSockets using Boost.Asio check out: https://github.com/eidheim/Simple-WebSocket-Server

0
source share

All Articles