Ole Christian Eidheim
Ole Christian Eidheim
Sorry about the close/reopen, I clicked the wrong button
pthread linking should be added here: https://github.com/eidheim/Simple-WebSocket-Server/blob/master/CMakeLists.txt#L19 if needed.
This seems to be a problem with cmake's CheckIncludeFileCXX though. I just confirmed this issue on Antergos. Temporary workaround: ```diff diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b0ea16..8f31cb5 100644 --- a/CMakeLists.txt +++...
You would have to perform this check in onerror, and run Client::start again after an error is received.
In your case, you probably have to call Client::stop before calling Client::start again.
If I understand you correctly, you want to add custom (trusted) certification authorities from a file. Try the latest version. I added the possibility to use custom certification authorities here,...
I have studied this issue abit more. You want to use a certificate for client authentication? In this case you have two files; the certificate and a private key file?
Try latest version now with for instance: SocketClient client("some.wss.server.com", true, "ca.pem", "client.crt", "client.key"); if you do not need a custom certificataion authority file: SocketClient client("some.wss.server.com", true, "", "client.crt", "client.key"); Again...
I decided to moved the pem-filename parameter to the end of SocketClient constructor so its similar to the SocketServer constructor: SocketClient client("some.wss.server.com", true, "client.crt", "client.key", "ca.pem");
Thank you, but I have to think some more on this. The problem is that this will slightly complicate the examples, and result in new users to add fin_rsv_opcode unnecessary...