diff --git a/src/musikcore/net/PiggyWebSocketClient.cpp b/src/musikcore/net/PiggyWebSocketClient.cpp index 0a94bbbbc..a4f2c94ee 100644 --- a/src/musikcore/net/PiggyWebSocketClient.cpp +++ b/src/musikcore/net/PiggyWebSocketClient.cpp @@ -77,8 +77,7 @@ PiggyWebSocketClient::PiggyWebSocketClient(IMessageQueue* messageQueue) rawClient->SetMode(RawWebSocketClient::Mode::PlainText); rawClient->SetOpenHandler([this](Connection connection) { - this->SetState(State::Authenticating); - /* initialize session */ + this->SetState(State::Connected); }); rawClient->SetFailHandler([this](Connection connection) { diff --git a/src/musikcore/net/PiggyWebSocketClient.h b/src/musikcore/net/PiggyWebSocketClient.h index 9fe27bc29..520714520 100644 --- a/src/musikcore/net/PiggyWebSocketClient.h +++ b/src/musikcore/net/PiggyWebSocketClient.h @@ -61,7 +61,6 @@ namespace musik { namespace core { namespace net { enum class State: int { Disconnected = 0, Connecting = 1, - Authenticating = 2, Connected = 3, Disconnecting = 4, }; diff --git a/src/musikcube/Main.cpp b/src/musikcube/Main.cpp index bf6246514..984d8e70b 100644 --- a/src/musikcube/Main.cpp +++ b/src/musikcube/Main.cpp @@ -117,7 +117,7 @@ int main(int argc, char* argv[]) { freopen(errorFn.c_str(), "w", stderr); auto piggyClient = std::make_shared(&Window::MessageQueue()); - piggyClient->Connect("172.31.16.1"); + piggyClient->Connect("192.168.1.27"); auto piggyLogger = new PiggyDebugBackend(piggyClient); auto fileLogger = new debug::SimpleFileBackend();