Also update peeps on change
This commit is contained in:
parent
c523e9d296
commit
e7647f5fe5
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue