Skip to content

Commit

Permalink
Refactor WebSocket client code and remove unnecessary forward declara…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
royshil committed Oct 15, 2024
1 parent 7fce375 commit 863ebc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/request-data.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ inline int url_source_agg_target_string_to_enum(const std::string &agg_target)
}
}

// Forward declare WebSocket-related types
namespace websocketpp {
class connection_hdl;
}

struct WebSocketClientWrapper; // Forward declaration

struct url_source_request_data {
Expand Down
3 changes: 3 additions & 0 deletions src/websocket-client.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

#pragma warning(disable : 4267)

#define ASIO_STANDALONE
#define _WEBSOCKETPP_CPP11_TYPE_TRAITS_

Expand Down

0 comments on commit 863ebc8

Please sign in to comment.