Minor cleanup.

This commit is contained in:
casey langen 2022-03-25 22:08:13 -07:00
parent e64a748371
commit feff77fb33
3 changed files with 2 additions and 4 deletions

View File

@ -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) {

View File

@ -61,7 +61,6 @@ namespace musik { namespace core { namespace net {
enum class State: int {
Disconnected = 0,
Connecting = 1,
Authenticating = 2,
Connected = 3,
Disconnecting = 4,
};

View File

@ -117,7 +117,7 @@ int main(int argc, char* argv[]) {
freopen(errorFn.c_str(), "w", stderr);
auto piggyClient = std::make_shared<PiggyWebSocketClient>(&Window::MessageQueue());
piggyClient->Connect("172.31.16.1");
piggyClient->Connect("192.168.1.27");
auto piggyLogger = new PiggyDebugBackend(piggyClient);
auto fileLogger = new debug::SimpleFileBackend();