Skip to content

How to use UFApi remoting? #9

@tiagolr

Description

@tiagolr

Hey, i have a server UFApi class like so:

class SignupApi extends UFApi { 
    public function test():String {
        return "returned!";
    }
}

and i have a JS client that tries to call the server method like so:

static public function main() {
    var sign:SignupApi = new SignupApi();
    trace("returned? " + sign.test());
}

The resulting trace is returned? null, I'm probably missing something as the return should be asynchronous, how can i fix this client? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions