diff --git a/gns3server/modules/project.py b/gns3server/modules/project.py index 4e758406..26604066 100644 --- a/gns3server/modules/project.py +++ b/gns3server/modules/project.py @@ -459,6 +459,13 @@ class Project: self._listeners.remove(queue) + @property + def listeners(self): + """ + List of current clients listening for event in this projects + """ + return self._listeners + @asyncio.coroutine def list_files(self): """ diff --git a/gns3server/templates/status.html b/gns3server/templates/status.html index 40953637..bed8c797 100644 --- a/gns3server/templates/status.html +++ b/gns3server/templates/status.html @@ -6,11 +6,23 @@ The purpose of this page is to help for GNS3 debug.
Name | +ID + | VMs | +Clients connected | +
---|---|---|---|
{{project.name}} | +{{project.id}} | +{{project.vms|length}} | +{{project.listeners|length}} | +