Questions tagged [websocket++]
An open source (BSD license) header only C++ library that implements RFC6455 The WebSocket Protocol.
websocket++
68
questions
0
votes
0
answers
41
views
SSL context creation crashes of c++ native module in Electron application
I am building a C++ native module to be used in an Electron application. The native module is responsible for communicating with a WebSocket server. I am using the WebSocketPP library and the ...
1
vote
0
answers
33
views
webscoket++ for realtime visualization, get bad connections
I want to achieve realtime visualization UI client, the images data should be sent from C++ server to UI client. I am using websocket++ library to create a server class and call this class in main.cpp ...
0
votes
0
answers
78
views
Why does my message does not reach the WebSocket Server, even through earlier in the program the exact same line of code works?
I am currently trying to get a WebSocket Server Client running. The program connects to the server, waits for a start signal from another client and starts its routine. In the routine the program ...
2
votes
1
answer
447
views
Boost asio crashes
I have a program using cpprestsdk for http querying and websocketpp for subscribing a data stream. The program will crash immediately(it says Process finished with exit code 139 (interrupted by signal ...
1
vote
1
answer
1k
views
C++ and boost 1.71 - error: reference to ‘_1’ is ambiguous
I am using the libraries websocketcpp and boost 1.71. The code used to work with boost 1.58 but after upgrading both libraries, it won't compile. The C++ compiler is g++ (Ubuntu 9.3.0-17ubuntu1~20.04) ...
1
vote
1
answer
1k
views
WebSocketpp handshake issue with TLS
I have been learning with WebSocket++ and built some of the server examples (Windows 10 Visual Studio 2019). The non-TLS examples work without issues, however, the TLS-enabled examples (...
0
votes
0
answers
485
views
WebSocket #include errors detected. Please update your includePath
I'm trying to work on WebSocket in C++ using websocketpp library. I have cloned this library https://github.com/zaphoyd/websocketpp in my system and build it using "cmake -G "MinGW Makefiles&...
0
votes
0
answers
236
views
Connecting to a C++ websocketpp server within Docker
I am trying to establish a websocket connection with a server written in C++ with websocketpp. I can successfully establish a connection with my server when it is running on my computer, but I am ...
2
votes
1
answer
2k
views
Websocket++ error: handle_transport_init received error: TLS handshake failed
When I connected to localhost it worked. But when I'm trying connect to wss://echo.websocket.org it says:
[2020-07-03 00:24:19] [connect] Successful connection
[2020-07-03 00:24:20] [error] ...
0
votes
2
answers
1k
views
How to use custom logger with websocketpp?
I am creating a telemetry server using websocketpp, and have followed the example here. My application will be running as a linux daemon which starts on boot, and therefore I won't be able to write ...
0
votes
1
answer
593
views
how does websocketpp handle connections when set_tls_init_handler is not set?
I see that I have to define an on_tls_init and have the set_tls_init_handler to point to this on_tls_init for secure connections. What happens when set_tls_init_handler is not set? Does webscoketpp go ...
0
votes
0
answers
1k
views
websocketpp connection failed with asio.system error code 10057
I use Websocket++ to connect to the deribit and bitmex exchange using websocket.
I wrote a wssclient class and i think there's no error in my code because i successfully connect to the deribit with ...
0
votes
1
answer
516
views
What's difference between websocketpp and boost.asio?
Recently I was packaging the Deribit API with websocketpp in C++. But when I read the source code of Websocketpp, I found that it's close linked with boost.asio. I have heard boost.asio before but I ...
0
votes
1
answer
302
views
what happens within run() but outside of handlers?/where should send() be placed?
I want to send messages whenever I want. However, I don't know where to put send(). I don't actually know what happens after run() is called but not inside a handler.
My current setup is just to ...
1
vote
1
answer
4k
views
Import websocketpp for cmake in VS2017
I am trying to import websocket++ to my project in Visual Studio 2017, but I have got a lot of errors with using it.
Project structure:
MyProject
- src
- websocketpp
CMakeLists.txt
...