|
@ -61,6 +61,7 @@ websockets::TestProtocol<User> default_protocol{ |
|
|
} else if (command == "update user") { |
|
|
} else if (command == "update user") { |
|
|
user = from_json<IncomingPacket>(object["data"]); |
|
|
user = from_json<IncomingPacket>(object["data"]); |
|
|
std::cout << "Updated user: " << &user << ": " << user.name << std::endl; |
|
|
std::cout << "Updated user: " << &user << ": " << user.name << std::endl; |
|
|
|
|
|
app->peeps = true; |
|
|
} else if (command == "poll") { |
|
|
} else if (command == "poll") { |
|
|
request_write(binfo); |
|
|
request_write(binfo); |
|
|
} |
|
|
} |
|
|