'system.listMethods() => [\'add\', \'subtract\', \'multiple\']
Returns a list of the methods supported by the server.'

def system_listMethods(self):

    methods = set(self.funcs.keys())
    if (self.instance is not None):
        if hasattr(self.instance, '_listMethods'):
            methods |= set(self.instance._listMethods())
        elif (not hasattr(self.instance, '_dispatch')):
            methods |= set(list_public_methods(self.instance))
    return sorted(methods)
