* Get the public key of the client with the given id. * @param client_id The id of the client. * @return View of the public key, which is empty when the client does not exist. */
| 2136 | * @return View of the public key, which is empty when the client does not exist. |
| 2137 | */ |
| 2138 | std::string_view NetworkGetPublicKeyOfClient(ClientID client_id) |
| 2139 | { |
| 2140 | auto socket = NetworkClientSocket::GetByClientID(client_id); |
| 2141 | return socket == nullptr ? "" : socket->GetPeerPublicKey(); |
| 2142 | } |
| 2143 | |
| 2144 | |
| 2145 | /** |
no test coverage detected