Perform initial refactoring work
Things that were once singletons are no longer singletons, but are instead stored in the "Application" singleton Some singletons still remain, and some renaming/renamespacing is left
This commit is contained in:
@@ -69,6 +69,7 @@ private:
|
||||
class PubSubManager
|
||||
{
|
||||
PubSubManager();
|
||||
friend class Application;
|
||||
|
||||
using WebsocketMessagePtr = websocketpp::config::asio_tls_client::message_type::ptr;
|
||||
using WebsocketContextPtr = websocketpp::lib::shared_ptr<boost::asio::ssl::context>;
|
||||
@@ -80,13 +81,13 @@ class PubSubManager
|
||||
std::unique_ptr<std::thread> mainThread;
|
||||
|
||||
public:
|
||||
~PubSubManager() = delete;
|
||||
|
||||
enum class State {
|
||||
Connected,
|
||||
Disconnected,
|
||||
};
|
||||
|
||||
static PubSubManager &getInstance();
|
||||
|
||||
void Start();
|
||||
|
||||
bool IsConnected() const
|
||||
|
||||
Reference in New Issue
Block a user