Updated nodejs contract lib for streamed input reading. (#110)

This commit is contained in:
Ravin Perera
2020-08-21 15:27:25 +05:30
committed by GitHub
parent baf5d8b14a
commit 465573ad29
7 changed files with 93 additions and 50 deletions

View File

@@ -52,7 +52,7 @@ namespace usr
struct connected_context
{
// Connected (authenticated) user list.
// Map key: User socket session id (<ip:port>)
// Map key: User socket session id.
std::unordered_map<std::string, usr::connected_user> users;
std::mutex users_mutex; // Mutex for users access race conditions.