jmuehlner commented on code in PR #791:
URL: https://github.com/apache/guacamole-client/pull/791#discussion_r1091032889
##########
guacamole/src/main/frontend/src/app/client/types/ManagedClient.js:
##########
@@ -174,14 +175,25 @@ angular.module('client').factory('ManagedClient',
['$rootScope', '$injector',
* @type ManagedFilesystem[]
*/
this.filesystems = template.filesystems || [];
-
+
/**
- * All messages that have been sent to the client that should be
- * displayed.
- *
- * @type ManagedClientMessage[]
+ * The current number of users sharing this connection, excluding the
+ * user that originally started the connection. Duplicate connections
+ * from the same user are included in this total.
+ */
+ this.userCount = template.userCount || 0;
+
+ /**
+ * All users currently sharing this connection, excluding the user that
+ * originally started the connection. If the connection is not shared,
+ * this object will be empty. This map consists of key/value pairs
+ * where each key is the user's username and each value is an object
Review Comment:
Too bad we can't just use `Set`. I guess it's still a little too new for
some browsers (looking at you IE and Edge < 12)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]