mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Minor cleanup.
This commit is contained in:
parent
e64a748371
commit
feff77fb33
@ -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) {
|
||||
|
@ -61,7 +61,6 @@ namespace musik { namespace core { namespace net {
|
||||
enum class State: int {
|
||||
Disconnected = 0,
|
||||
Connecting = 1,
|
||||
Authenticating = 2,
|
||||
Connected = 3,
|
||||
Disconnecting = 4,
|
||||
};
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user