websocketd icon indicating copy to clipboard operation
websocketd copied to clipboard

How can I use c/c++ as a websocket client rather than server?

Open rajhlinux opened this issue 2 years ago • 2 comments

I saw the example codes and it is great. It actually works. I got a working websocket connection running on windows 10 after trying other websockets which never worked for... get ready... "c or c++".

Question is, how can I use websocketd to run c/c++ code as a websocket client rather than a server?

Just basically want to avoid using javascript or anything else as the websocket client to pass data to the c/c++ program, would like to have the websocket server talk directly to the c/c++ websocket client.

Any implementation on this? Thanks.

rajhlinux avatar Apr 17 '22 23:04 rajhlinux

I'm not sure I understand. Are you looking for c++ code to make websocket client requests? websocketd is not the right thing for that.

cpprestsdk has been a popular choice but I wouldn't recommend it because it is not actively maintained. It uses websocketpp under the hood for websockets which you can use directly.

sebkraemer avatar May 13 '22 06:05 sebkraemer

I found a way, contact me to get the code. E-mail:[email protected] --From translator

sunhaochen20070816163 avatar Jun 08 '22 15:06 sunhaochen20070816163