C++ - Websocket Programming #2

This time, we will implement a websocket client in a C++ program instead of a browser. There are various libraries that can implement WebSocket in C++ programs. In this article, I will introduce an example that can implement WebSocket with only one cpp file and one header file. easywsclient The websocket library I would recommend and use is https://github.com/dhbaird/easywsclient . Download easywsclient.cpp and easywsclient.hpp files from the above site and save them in your project directory. And this site provides websocket example files example-client-cpp11.cpp and example-client.cpp files. And this site provides websocket example files example-client-cpp11.cpp and example-client.cpp files. I will modify these files slightly and connect to Node-RED websocket. Build working C++ example on node-red First, download the source code from github. [ spypiggy@localhost study ] $ git clone https://github.com/dhbaird/easywsclient.git Cloning into 'easywsclient' ... rem...