Change the client ui a little

This commit is contained in:
2026-02-13 14:26:52 +01:00
parent 33788518ba
commit 5edf51e25c
3 changed files with 157 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ public:
~Service();
grpc::ServerBidiReactor<chat::chatMsg, chat::chatMsg> *
sendMsg(grpc::CallbackServerContext *context) override;
void sendToAll(const chat::chatMsg &msg);
void sendToAll(chat::chatMsg &msg);
private:
std::map<std::string, ChatReactor *> m_clients;

View File

@@ -19,7 +19,7 @@ Service::sendMsg(grpc::CallbackServerContext *context) {
return newClient;
}
void Service::sendToAll(const chat::chatMsg &msg) {
void Service::sendToAll(chat::chatMsg &msg) {
std::cout << "Relay message to: ";
for (auto client : m_clients) {
std::cout << client.first << " ";