Added clientStatus API call

This commit is contained in:
Jonathan Warren 2013-06-19 15:33:42 -04:00
parent 69267fb6fe
commit 5dcfa962dd

View File

@ -4647,6 +4647,8 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
shared.UISignalQueue.put(('rerenderInboxFromLabels', ''))
shared.UISignalQueue.put(('rerenderSubscriptions', ''))
return 'Deleted subscription if it existed.'
elif method == 'clientStatus':
return '{ "networkConnections" : "%s" }' % str(len(shared.connectedHostsList))
else:
return 'Invalid Method: %s' % method