@api_endpoint(decorate=False)<EOL><INDENT>def method(self, method, params, id_):<DEDENT>
try:<EOL><INDENT>handler = self.api_path_map()[method]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise MeteorError(<NUM_LIT>, '<STR_LIT>', method)<EOL><DEDENT>try:<EOL><INDENT>inspect.getcallargs(handler, *params)<EOL><DEDENT>except TypeError as err:<EOL><INDENT>raise MeteorError(<NUM_LIT>, '<STR_LIT:%s>' % err)<EOL><DEDENT>result = handler(*params)<EOL>msg = {'<STR_LIT>': '<STR_LIT:result>', '<STR_LIT:id>': id_}<EOL>if result is not None:<EOL><INDENT>msg['<STR_LIT:result>'] = result<EOL><DEDENT>this.send(msg)<EOL>
Invoke a method.