spdlog in websocket class

better logging for std::cerr
This commit is contained in:
2024-08-27 11:10:38 +02:00
parent 3f1cf62d5c
commit 0566a4045e
3 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ struct action {
class Websocket
{
public:
Websocket(uint16_t port, std::ostream* out, std::function<std::string(std::string)> on_message, std::function<std::string()> on_update);
Websocket(uint16_t port, std::ostream* out, std::ostream* err, std::function<std::string(std::string)> on_message, std::function<std::string()> on_update);
void run();
void stop();
void process_messages();